Google is committed to advancing racial equity for Black communities. See how.

connectToService method

*<Null safety>*
  • @override

Future<void> connectToService (String serviceName, Channel? channel)

See fidl.ServiceProvider#connectToService.

Implementation

@override
Future<void> connectToService(String serviceName, Channel? channel) async {
  final connectorThunk = _connectorThunks[serviceName];
  if (connectorThunk != null) {
    connectorThunk(channel);
  } else {
    channel!.close();
  }
}