Result<T> class abstract

Implementers
Available extensions

Constructors

Result.dismissed(T result, [String? message])
factory
Result.success(T result, [String? message])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isCancelled bool

Available on Result?, provided by the ResultExtension extension

no setter
isError bool

Available on Result?, provided by the ResultExtension extension

no setter
isSkipped bool

Available on Result?, provided by the ResultExtension extension

no setter
isSuccessful bool

Available on Result?, provided by the ResultExtension extension

no setter
message String?
no setter
resultType ResultType
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withMessage(String message) Result<T>

Operators

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

Static Methods

error<T>(String message) Result<T?>
noop<T>() Result<T?>
timed<T>(FutureOr<T> exec, {String? debugName}) Future<TimedResult<T?>>