ProviderListenable<State> mixin

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

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

Should override ==/hashCode when possible

Implemented types
Mixin Applications
  1. @immutable


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


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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
read(Node node) → State
Obtains the result of this provider expression without adding listener.
select<Selected>(Selected selector(State value)) ProviderListenable<Selected>
Partially listen to a provider.
toString() String
A string representation of this object.


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