ProviderFamily<T, P> class

A family of providers that can be parameterized. Similar to Riverpod's provider families.

Constructors

ProviderFamily(T _creator(P), {bool singleton = false})
Creates a provider family with a parameterized factory function.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(P parameter) Provider<T>
Gets a provider for the given parameter.
dispose() → void
Disposes all providers in this family.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited