Google celebrates Hispanic Heritage Month. See how.

addServiceForName<T> method

*[<Null safety>](*

void addServiceForName <T>(void connector(InterfaceRequest<T>), String serviceName)

Registers the connector function with the given serviceName. The connector function is invoked when the service provider is asked by the framework to connect to the service in the connectToService method.


void addServiceForName<T>(
    void Function(InterfaceRequest<T>) connector, String serviceName) {
  _connectorThunks[serviceName] = (Channel? channel) {