RemoteModel<T> class Null safety

Annotations

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. [...]
read-only, inherited
isData bool
read-only
isError bool
read-only
isInitial bool
read-only
isLoaded bool
read-only
isLoading bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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
@optionalTypeArgs, 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
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult initial()?, TResult data(T value)?, TResult loading()?, TResult error(dynamic error)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
@optionalTypeArgs, inherited

Operators

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