Atom<T, A> class

Constructors

Atom({required String key, required T initialState, Storage? storage, required dynamic reducer(dynamic, dynamic)})

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
final
reducer → dynamic Function(dynamic, dynamic)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage Storage?
final
value → dynamic
no setter
valueNotifier ValueNotifier<T>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChanged() → void
Use this method to notify listeners of deeper changes, e.g. when a value is added to or removed from a set which is stored in the value of a ValueNotifier<Set<T>>.
toString() String
A string representation of this object.
inherited
watch(BuildContext context) → T

Operators

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