ResultListenable<T> class
An interface for subclasses of Listenable that expose a result.
This interface is implemented by ResultNotifier
See also:
- BuildResultListenable, a minx that enables widget to work with [ResultListenable
- Implemented types
- Implementers
Constructors
Properties
- error → Object
-
Get the error of the result
read-only
- hasError → bool
-
Check whether result is an error
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- hasValue → bool
-
Check whether result is a value
read-only
-
result
→ Result<
T> -
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- stackTrace → StackTrace
-
Get the stackTrace of the result
read-only
- value → T
-
Get the value of the result
read-only
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
asValueListenable(
) → ValueListenable< Result< T> > - Wrap ResultListenable as ValueListenable, so it can be be used with anything supports ValueListenable.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited