Atom class
- Implementers
- Available extensions
Constructors
- Atom.new({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 -
reportRead(
) → void -
Available on Atom, provided by the AtomSpyReporter extension
-
reportWrite<
T> (T newValue, T oldValue, void setNewValue(), {EqualityComparer< T> ? equals, bool? useDeepEquality}) → void -
Available on Atom, provided by the AtomSpyReporter extension
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited