Success<T> class abstract

Inheritance

Constructors

Success(T value)
factory

Properties

copyWith → _$$SuccessCopyWith<T, _$Success<T>>
no setter
dataOrThrow → T
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isFailure bool
no setterinherited
isLoading bool
no setterinherited
isSuccess bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setter

Methods

chain<Res>(Res cb(T value)) Result<Res>
inherited
getOrElse(dynamic orElse()) → T
inherited
map<TResult extends Object?>({required TResult loading(Loading<T> value), required TResult success(Success<T> value), required TResult error(Error<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? loading(Loading<T> value)?, TResult? success(Success<T> value)?, TResult? error(Error<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loading(Loading<T> value)?, TResult success(Success<T> value)?, TResult error(Error<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loading()?, TResult success(T value)?, TResult error(Exception 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 loading(), required TResult success(T value), required TResult error(Exception error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? loading()?, TResult? success(T value)?, TResult? error(Exception error)?}) → TResult?
inherited

Operators

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