Result<DATA, ERROR extends Exception> class
Constructors
- Result(DATA? data, ERROR? error)
- Result.failure(ERROR error)
-
factory
- Result.success(DATA data)
-
factory
Properties
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