StateRef<T> class

A reference to a part of the app state.

Inheritance
Available Extensions

Constructors

StateRef(T initialState, {EqualityComparer<T>? equalityComparer, String? name})
Creates a reference to a part of the app state with an initialState.

Properties

equalityComparer → EqualityComparer<T>?
The predicate determining if two states are the same.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialState → T
This is the initial value of the state.
final
key → BinderKey
Internal use.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

equals(T oldState, T newState) bool
Internal use only.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(T state) BinderOverride<T>
Overrides this referenced with a new value.
read(StateReader read, List<BinderKey>? keys) → T
Internal use only.
override
toString() String
A string representation of this object.
inherited

Operators

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