ListState<Record, Query> class

Stores the list state.

Inheritance
Annotations
  • @immutable

Constructors

ListState.new({required Query query, List<Record>? records, ListStage stage = const IdleListStage()})
Creates a list state.

Properties

hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether the list has no records.
finalinherited
isInitialized bool
Whether the list is initialized.
finalinherited
isLoading bool
Whether the list is at the stage of loading records.
no setter
query → Query
Description of the criteria of the records included in the list.
final
records List<Record>
Returns the list of records.
no setter
recordsStore List<Record>?
Stores list records.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stage ListStage
Stage the list is at.
finalinherited

Methods

copyWith({List<Record>? records = const DefaultList(), ListStage? stage, Query? query}) ListState<Record, Query>
Creates a copy of this list state but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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