RemoteModel<T> class abstract

Annotations
  • @freezed

Constructors

RemoteModel.data(T value)
const
factory
RemoteModel.error(dynamic error)
const
factory
RemoteModel.initial()
const
factory
RemoteModel.loading()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isData bool
no setter
isError bool
no setter
isInitial bool
no setter
isLoaded bool
no setter
isLoading bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cast<E>() RemoteModel<E>
map<TResult extends Object?>({required TResult initial(_Initial<T> value), required TResult data(_Data<T> value), required TResult loading(_Loading<T> value), required TResult error(_Error<T> value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult initial(_Initial<T> value)?, TResult data(_Data<T> value)?, TResult loading(_Loading<T> value)?, TResult error(_Error<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult initial()?, TResult data(T value)?, TResult loading()?, TResult error(dynamic 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
transformData<E>(E transform(T value)) RemoteModel<E>
when<TResult extends Object?>({required TResult initial(), required TResult data(T value), required TResult loading(), required TResult error(dynamic error)}) → TResult
inherited

Operators

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