Methods
-
map<TResult extends Object?>({required TResult data(AsyncData<T> value), required TResult loading(AsyncLoading<T> value), required TResult error(AsyncError<T> value)})
→ TResult
-
inherited
-
maybeMap<TResult extends Object?>({TResult data(AsyncData<T> value)?, TResult loading(AsyncLoading<T> value)?, TResult error(AsyncError<T> value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult data(T value)?, TResult loading()?, TResult error(Object error, StackTrace? stackTrace)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult data(T value), required TResult loading(), required TResult error(Object error, StackTrace? stackTrace)})
→ TResult
-
inherited
-
whenData<R>(R cb(T value))
→ AsyncValue<R>
-
Shorthand for
when
to handle only the data
case.
inherited