PersistentAsyncDataIdle<E extends Object?, D extends Object?> class

Inheritance
Annotations
  • @immutable
  • @sealed

Constructors

PersistentAsyncDataIdle({required D data})
const

Properties

data → D
finalinherited
error → E?
no setteroverride
hasError bool
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
isError bool
no setteroverride
isIdle bool
no setteroverride
isLoading bool
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<B extends Object?>(B mapper(D data)) PersistentAsyncData<E, B>
override
mapError<A extends Object?>(A mapper(E error)) PersistentAsyncData<A, D>
override
match<R>({required R idle(PersistentAsyncDataIdle<E, D> data), required R loading(PersistentAsyncDataLoading<E, D> data), required R error(PersistentAsyncDataError<E, D> data)}) → R
override
matchOr<R>({R idle(PersistentAsyncDataIdle<E, D> data)?, R loading(PersistentAsyncDataLoading<E, D> data)?, R error(PersistentAsyncDataError<E, D> data)?, required R fallback()}) → R
override
matchOrNull<R>({R idle(PersistentAsyncDataIdle<E, D> data)?, R loading(PersistentAsyncDataLoading<E, D> data)?, R error(PersistentAsyncDataError<E, D> data)?}) → R?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toError({required E error, D? data}) PersistentAsyncDataError<E, D>
inherited
toIdle({D? data}) PersistentAsyncDataIdle<E, D>
inherited
toLoading({D? data}) PersistentAsyncDataLoading<E, D>
inherited
toString() String
A string representation of this object.
override
when<R>({required R idle(D data), required R loading(D data), required R error(E error, D data)}) → R
override
whenOr<R>({R idle(D data)?, R loading(D data)?, R error(E error, D data)?, required R fallback()}) → R
override
whenOrNull<R>({R idle(D data)?, R loading(D data)?, R error(E error, D data)?}) → R?
override

Operators

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