CpeSuccess<T> class final

Inheritance

Constructors

CpeSuccess(T data, {Map<String, Object?> providerRawMetadata = const {}})
const

Properties

data → T
final
dataOrNull → T?
no setterinherited
errorOrNull → CpeException?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isFailure → bool
no setterinherited
isSuccess → bool
no setterinherited
providerRawMetadata → Map<String, Object?>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fold<R>(R onSuccess(T data), R onFailure(CpeException error)) → R
inherited
getOrThrow() → T
Desenvuelve el valor exitoso o lanza la excepción tipada CpeException.
inherited
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