Computed<T> class Null safety

Inheritance
Implemented types
Available Extensions

Constructors

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

Properties

context ReactiveContext
read-onlyinherited
equals EqualityComparer<T>?
final
errorValue MobXCaughtException?
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
hasObservers bool
read-onlyinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value → T
read-onlyoverride

Methods

computeValue({required bool track}) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
inherited

Operators

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