menu
atoms_state package
documentation
atoms_state.dart
Atom<T, A> class
Atom<T, A> class
dark_mode
light_mode
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 setter
inherited
key
→
String
final
reducer
→ dynamic Function
(
dynamic
,
dynamic
)
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
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
atoms_state package
documentation
atoms_state
Atom<T, A> class
flutter_atoms library