ArgProvider<T extends Object, A> class

A Provider that needs to be given an initial argument before it can be used.

Annotations

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(A arg) InstantiableArgProvider<T, A>
It creates an InstantiableArgProvider with the passed argument. This ensures that an ArgProvider inserted into the widget tree always has an initial argument and, thus, can be created.
maybeOf(BuildContext context) → T?
Injects the value held by a provider. In case the provider is not found, it returns null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(BuildContext context) → T
Injects the value held by a provider. In case the provider is not found, it throws a ProviderWithoutScopeError.
overrideWithValue(T value) ArgProviderOverride<T, A>
It creates an override of this provider to be passed to ProviderScopeOverride.
toString() String
A string representation of this object.
inherited

Operators

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