AsyncData<T> class final

The load completed successfully with value.

Inheritance

Constructors

AsyncData(T value)
const

Properties

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
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<R>({required R loading(), required R data(T data), required R error(BridgeError error)}) → R
Folds the three states into a single value of type R. Every branch is required, mirroring the sealed family's exhaustiveness.
inherited

Operators

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