Success<T> class

Inheritance

Properties

data → T
no setteroverride
dataOrNull → T?
no setteroverride
exceptionOrNull Exception?
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
messageOrNull String?
no setteroverride
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
toString() String
A string representation of this object.
override
transform<R>({R whenSuccess(Success<T> success)?, R whenFailure(Failure<T> failure)?, R whenCancelled(Cancelled<T> cancelled)?, required R whenElse(Result<T> result)}) → R
inherited
transformNullable<R>({R whenSuccess(Success<T> success)?, R whenFailure(Failure<T> failure)?, R whenCancelled(Cancelled<T> cancelled)?, R whenElse(Result<T> result)?}) → R?
inherited
use({void whenSuccess(Success<T> success)?, void whenFailure(Failure<T> failure)?, void whenCancelled(Cancelled<T> cancelled)?, void whenElse(Result<T> result)?}) → void
inherited

Operators

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