call method

Provider<T> call(
  1. P parameter
)

Gets a provider for the given parameter.

Implementation

Provider<T> call(P parameter) {
  return _providers.putIfAbsent(
    parameter,
    () => Provider<T>(() => _creator(parameter), singleton: _singleton),
  );
}