Failure<T> class

Creates the Result object with error and stackTrace containing error object and stackTrace object respectively.

Inheritance

Constructors

Failure(Object error, [StackTrace? stackTrace])

Properties

error Object
error holds the error value
final
hashCode int
The hash code for this object.
no setteroverride
isError bool
Returns true if this result represents an error/failure case, false otherwise. This is equivalent to checking if the result is an instance of Failure.
no setteroverride
isSuccess bool
Returns true if this result represents a successful operation, false otherwise. This is equivalent to checking if the result is an instance of Success.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
stackTrace holds the stackTrace
final

Methods

flatMap<R>(ProgressDialogResult<R> fn(T value)) ProgressDialogResult<R>
Chains results by applying the provided function to success values
inherited
map<R>(R fn(T value)) ProgressDialogResult<R>
Maps the success value to a new value using the provided function
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unwrap() → T
Unwraps the result, returning the success value or throwing the error
inherited

Operators

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