StateAccessor<R> class Dependency Injection

Provides access to the latest state of a provider.

Constructors

StateAccessor({required Ref ref, required BaseWatchable<BaseNotifier, dynamic, R> provider})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
provider → BaseWatchable<BaseNotifier, dynamic, R>
final
ref Ref
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → R
Returns the latest state of the provider.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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