# Service<T>.withConnector constructor | |
*[<Null safety>](https://dart.dev/null-safety)* | |
Service<T>.withConnector([Connector](../../package-fuchsia_vfs_vfs/Connector.md)<T> _connector) | |
<p>Constructor with <a href="../../package-fuchsia_vfs_vfs/Connector.md">Connector</a></p> | |
## Implementation | |
```dart | |
Service.withConnector(this._connector) : assert(_connector != null); | |
``` | |