Result<T extends Object> class abstract

Constructors

Result.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exception() Exception
get() → T
getOrNull() → T?
isFailure() bool
isSuccess() bool
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

Static Methods

failure<T extends Object>(Exception error) Result<T>
success<T extends Object>(T value) Result<T>