ProviderListenable<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.

Should override ==/hashCode when possible

Implemented types
Mixin Applications
  1. @immutable

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
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.
select<Selected>(Selected selector(State value)) ProviderListenable<Selected>
Partially listen to a provider.
toString() String
A string representation of this object.
inherited

Operators

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