Failure<T> class

Inheritance

Constructors

Failure(Error error, {T? data})
Failure.fromMessage(String errorMessage, {T? data})

Properties

data ↔ T?
getter/setter pairinherited
error Error?
getter/setter pairinherited
hasData bool
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({required dynamic onSuccess(T data), dynamic onLoading(T? data)?, dynamic onFailure(Error error)?}) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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