Computed<T> class

Inheritance
Implemented types
Available Extensions

Constructors

Computed(T fn(), {String? name, ReactiveContext? context, EqualityComparer<T>? equals, bool? keepAlive})
Creates a computed value with an optional name.
factory

Properties

context ReactiveContext
no setterinherited
debugCreationStack StackTrace?
The stack trace when the object is created
finalinherited
equals EqualityComparer<T>?
final
errorValue MobXCaughtException?
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
no setterinherited
isBeingObserved bool
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setteroverride

Methods

computeValue({required bool track}) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(void handler(ChangeNotification<T>), {bool? fireImmediately}) → void Function()
onBecomeObserved(void fn()) → void Function()
inherited
onBecomeUnobserved(void fn()) → void Function()
inherited
reportChanged() → void
inherited
reportObserved() → void
inherited
toString() String
A string representation of this object.
override

Operators

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