Succeeded<ResultType> class abstract

Inheritance

Constructors

Succeeded(ResultType data)
const
factory

Properties

asFailed Failed
Cast this into a Failed, and throw an exception if the cast fails! It might be tempting to just cast the RequestStatus into the desired type, but it's strongly advised to not do that indiscriminately. Although, it might be convenient to have this cast sometimes. Use it wisely!
no setterinherited
asIdle Idle
Cast this into an Idle, and throw an exception if the cast fails! It might be tempting to just cast the RequestStatus into the desired type, but it's strongly advised to not do that indiscriminately. Although, it might be convenient to have this cast sometimes. Use it wisely!
no setterinherited
asLoading Loading
Cast this into a Loading, and throw an exception if the cast fails! It might be tempting to just cast the RequestStatus into the desired type, but it's strongly advised to not do that indiscriminately. Although, it might be convenient to have this cast sometimes. Use it wisely!
no setterinherited
asSucceeded Succeeded
Cast this into a Succeeded, and throw an exception if the cast fails! It might be tempting to just cast the RequestStatus into the desired type, but it's strongly advised to not do that indiscriminately. Although, it might be convenient to have this cast sometimes. Use it wisely!
no setterinherited
copyWith → _$$SucceededImplCopyWith<ResultType, _$SucceededImpl<ResultType>>
no setter
data → ResultType
no setter
hashCode int
The hash code for this object.
no setterinherited
isFailed bool
no setterinherited
isIdle bool
no setterinherited
isLoading bool
no setterinherited
isSucceeded bool
no setterinherited
maybeData Maybe<ResultType>
Getter that results in a Maybe that is Just if the RequestStatus is Succeeded and Nothing otherwise
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult idle(Idle<ResultType> value), required TResult loading(Loading<ResultType> value), required TResult succeeded(Succeeded<ResultType> value), required TResult failed(Failed<ResultType> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? idle(Idle<ResultType> value)?, TResult? loading(Loading<ResultType> value)?, TResult? succeeded(Succeeded<ResultType> value)?, TResult? failed(Failed<ResultType> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult idle(Idle<ResultType> value)?, TResult loading(Loading<ResultType> value)?, TResult succeeded(Succeeded<ResultType> value)?, TResult failed(Failed<ResultType> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult idle()?, TResult loading()?, TResult succeeded(ResultType data)?, TResult failed(AppError 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 idle(), required TResult loading(), required TResult succeeded(ResultType data), required TResult failed(AppError error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? idle()?, TResult? loading()?, TResult? succeeded(ResultType data)?, TResult? failed(AppError error)?}) → TResult?
inherited

Operators

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