Success<T> class

Creates the Result object with value containing some value.

Inheritance

Constructors

Success(T value)

Properties

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
value → T
value property holds the value returned by the Future.
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