AlwaysAliveProviderListenable<State> mixin

A base class for all providers, used to consume a provider.

It is used by ProviderContainer.listen and Ref.watch to listen to both a provider and provider.select.

Do not implement or extend.

Superclass constraints
  1. @Deprecated('Will be removed in 3.0.0. Use ProviderListenable instead')

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

addListener(Node node, void listener(State? previous, State next), {required void onError(Object error, StackTrace stackTrace)?, required void onDependencyMayHaveChanged()?, required bool fireImmediately}) ProviderSubscription<State>
Starts listening to this transformer
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Node node) → State
Obtains the result of this provider expression without adding listener.
inherited
select<Selected>(Selected selector(State value)) AlwaysAliveProviderListenable<Selected>
Partially listen to a provider.
override
toString() String
A string representation of this object.
inherited

Operators

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