EntityState<T> class

State of some logical entity

Implementers

Constructors

EntityState({T? data, bool isLoading = false, bool hasError = false, Object? error})
const
EntityState.content([T? data])
Content constructor
EntityState.error([Object? error, T? data])
Error constructor
EntityState.loading([T? data])
Loading constructor

Properties

data → T?
Data of entity
final
error Object?
Error from state
final
hasError bool
State has error
final
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
State is loading
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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