Failure<T> class abstract

Implemented types

Constructors

Failure({required String error})
const
factory

Properties

copyWith → $FailureCopyWith<T, Failure<T>>
no setter
error String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult success(Success<T> value), required TResult failure(Failure<T> value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult success(Success<T> value)?, TResult failure(Failure<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult success(T data)?, TResult failure(String error)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult success(T data), required TResult failure(String error)}) → TResult
inherited

Operators

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