ProviderBase<State> class
abstract
A base class for all providers.
- Implemented types
- Implementers
- Annotations
-
- @immutable
Constructors
-
ProviderBase({required String? name, required Family<
dynamic, dynamic, ProviderBase> ? from, required Object? argument}) - A base class for all providers.
Properties
-
allTransitiveDependencies
→ List<
ProviderOrFamily> ? -
All the dependencies of a provider and their dependencies too.
latefinalinherited
- argument → Object?
-
If this provider was created with the
.family
modifier, argument is variable used.final -
dependencies
→ List<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on.
no setterinherited
-
from
→ Family<
dynamic, dynamic, ProviderBase> ? -
If this provider was created with the
.family
modifier, from is the.family
instance.final - hashCode → int
-
The hash code for this object.
no setteroverride
- name → String?
-
A custom label for providers.
final
-
originProvider
→ ProviderBase<
Object?> -
The provider that will be refreshed when calling ProviderContainer.refresh
and that will be overridden when passed to
ProviderScope
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
covariant Ref ref) → State - Initializes the state of a provider
-
createElement(
) → ProviderElementBase< State> - An internal method that defines how a provider behaves.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select<
Selected> (Selected selector(State value)) → ProviderListenable< Selected> - Partially listen to a provider.
-
toString(
) → String -
A string representation of this object.
override
-
updateShouldNotify(
State previousState, State newState) → bool - Called when a provider is rebuilt. Used for providers to not notify their listeners if the exposed value did not change.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override