StateHolder<T> class

Constructors

StateHolder({required void onStateChanged(), T? data})

Properties

busy bool
no setterinherited
data ↔ T?
getter/setter pair
error String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
no setterinherited

Methods

doneError(String error, {bool signal = true}) → void
inherited
doneSuccess({bool signal = true}) → void
inherited
fromMap(Map<String, dynamic> map) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setState(FutureOr<void> op()?, {bool waitSignal = true, bool doneSuccessSignal = true, bool doneErrorSignal = true, String onDoneError(dynamic e)?}) Future<void>
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
wait({bool signal = true}) → void
inherited

Operators

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