get<P extends Provider> static method

P get<P extends Provider>()

Implementation

static P get<P extends Provider>() {
  for (dynamic provider in _providers.values) {
    if (provider.runtimeType == P) {
      return provider;
    }
  }

  dynamic provider;

  return provider;
}