ObservableWritable<T> mixin

Class used to mixin with observable can set value

Superclass Constraints
Mixin Applications

Properties

error String?
Error message if value invalid, otherwise is null
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListener bool
Check there are listeners on this observable
no setterinherited
hasValidator bool
Check has using validate value
no setterinherited
modified bool
Check value has updated
no setterinherited
oldValue → T
The old value if has change
no setterinherited
peek → T
The current value but ignore check depend on in Computed context
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<T>
Create a broadcast stream to listen value changes.
no setterinherited
valid bool
Validate status
no setterinherited
validStatus ValidateStatus
Get current status of validating process
no setterinherited
value ↔ T
The current value, if value called in a computed context, it will set Computed is depend on this
getter/setter pairinherited-getter

Methods

call() → T
inherited
changed(Function callback) Subscription
Listen on value changed then run callback
inherited
dispose() → void
Close stream (if used) and all listeners on this observable
inherited
listen(Function callback) Subscription
Listen on value changed then run callback, it also run callback in first time
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Notify to observers are listen on this observable
inherited
setError(String? msg) → void
Manual set error, used to update error message by validate outsite
inherited
toString() String
A string representation of this object.
inherited

Operators

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