Atom class

Implementers
Available Extensions

Constructors

Atom({String? name, dynamic onObserved()?, dynamic onUnobserved()?, ReactiveContext? context})
Creates a simple Atom for tracking its usage in a reactive context. This is useful when you don't need the value but instead a way of knowing when it becomes active and inactive in a reaction.
factory

Properties

context ReactiveContext
no setter
debugCreationStack StackTrace?
The stack trace when the object is created
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
no setter
isBeingObserved bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBecomeObserved(void fn()) → void Function()
onBecomeUnobserved(void fn()) → void Function()
reportChanged() → void
reportObserved() → void
toString() String
A string representation of this object.
override

Operators

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