Result<Value, Failure> class

Result of a ble operation.

In case the result is successful Failure is null.

Annotations
  • @immutable

Constructors

Result.failure(Failure? _failure)
const
Result.success(Value? _value)
const

Properties

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

Methods

dematerialize() → Value
Provides the value in case of success or throws Exception in case of failure.
iif<T>({required T success(Value value), required T failure(Failure failure)}) → T
Execute specific actions on success and on failure.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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