AlwaysAliveProviderBase<State> class
Null safety
A base class for providers that never disposes themselves.
This is the default base class for providers, unless a provider was marked
with the .autoDispose
modifier, like: Provider.autoDispose(...)
- Inheritance
- Object
- ProviderBase<
State> - AlwaysAliveProviderBase
- Implemented types
- Implementers
- Available Extensions
Constructors
-
AlwaysAliveProviderBase({required String? name, required Family<
dynamic, dynamic, ProviderBase> ? from, required Object? argument}) - Creates an AlwaysAliveProviderBase.
Properties
-
allTransitiveDependencies
→ List<
ProviderOrFamily> ? -
All the dependencies of a provider and their dependencies too.
late, final, inherited
- argument → Object?
-
If this provider was created with the
.family
modifier, argument is variable used.final, inherited -
dependencies
→ List<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on. [...]
read-only, inherited
-
from
→ Family<
dynamic, dynamic, ProviderBase> ? -
If this provider was created with the
.family
modifier, from is the.family
instance.final, inherited - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- name → String?
-
A custom label for providers. [...]
final, inherited
-
originProvider
→ ProviderBase<
Object?> -
The provider that will be refreshed when calling ProviderContainer.refresh
and that will be overridden when passed to
ProviderScope
. [...]@visibleForOverriding, read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
create(
covariant Ref ref) → State -
Initializes the state of a provider
@visibleForOverriding, inherited
-
createElement(
) → ProviderElementBase< State> -
An internal method that defines how a provider behaves.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
select<
Selected> (Selected selector(State value)) → AlwaysAliveProviderListenable< Selected> -
Partially listen to a provider. [...]
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
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.
@visibleForOverriding, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited