DefaultKeepAsyncValue<T> class

Represents a default value for KeepAsyncValue.

Implemented types

Constructors

DefaultKeepAsyncValue(T defaultValue)
const

Properties

defaultValue → T
The default value.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ← T?
Sets the value contained in the KeepAsyncValue.
no getteroverride

Methods

get() Future<T>
Gets the value contained in the KeepAsyncValue.
override
map<R>({required R data(T value), required R loading(), required R error(Object? error, StackTrace? stackTrace)}) → R
Maps the value contained in the KeepAsyncValue.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T? value) Future<void>
Sets the value contained in the KeepAsyncValue.
override
toString() String
A string representation of this object.
inherited

Operators

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