DataState<TFailure, TData> class abstract

Implementers

Constructors

DataState({required DataStatus status, required Option<TFailure> failure, required Option<TData> data})

Properties

data → TData
no setter
failure → TFailure
no setter
hasData bool
no setter
hasFailure bool
no setter
hashCode int
The hash code for this object.
no setterinherited
notHasData bool
no setter
notHasFailure bool
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status DataStatus
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tryData → TData?
no setter
tryFailure → TFailure?
no setter

Methods

copyWith({DataStatus? status, Option<TFailure>? failure}) DataState<TFailure, TData>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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