call method

  1. @override
StateProvider<R> call(
  1. Arg argument
)
inherited

Create a provider from an external value.

That external value should be immutable and preferably override ==/hashCode. See the documentation of Provider.family for more information.

Implementation

@override
ProviderT call(Arg argument) => _providerFactory(
      (ref) => _createFn(ref, argument),
      name: name,
      from: this,
      argument: argument,
      dependencies: dependencies,
      allTransitiveDependencies: allTransitiveDependencies,
      debugGetCreateSourceHash: debugGetCreateSourceHash,
    );