Rx<T> class

Foundation class used for custom Types outside the common native Dart types. For example, any custom "Model" class, like User().obs will use Rx as wrapper.

Implementers
Available extensions

Constructors

Rx(T value, int hashCode, int stateCode)

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
Returns the current value
getter/setter pair

Methods

call([T? v]) → T
Makes this Rx looks like a function so you can update a new value using rx(someOtherValue). Practical to assign the Rx directly to some Widget that has a signature ::onChange( value )
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Returns the json representation of value.
toString() String
A string representation of this object.
override

Operators

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