Result<DATA, ERROR extends Exception> class

Constructors

Result(DATA? data, ERROR? error)
Result.failure(ERROR error)
factory
Result.success(DATA data)
factory

Properties

data → DATA?
final
error → ERROR?
final
hashCode int
The hash code for this object.
no setterinherited
isFailure bool
no setter
isSuccess bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get() → DATA?
getError() → ERROR?
getErrorOrNull() → ERROR?
getOrNull() → DATA?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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