CollectionState class

Available extensions
Annotations
  • @autoequal
  • @CopyWith(copyWithNull: true)
  • @JsonSerializable()

Constructors

CollectionState({required List<Json> dataRows, required Model model, required int currentPage, required int totalPages, required bool isLoading, required bool isError, required bool notFoundAnything, required QueryField? query, required QueryField? globalSearchQuery, required Sort? sort, required Map<ModelId, ModelFiltersBackup> filtersBackup})
const
CollectionState.empty()
factory
CollectionState.fromJson(dynamic json)
factory

Properties

currentPage int
final
dataRows List<Json>
final
filtersBackup Map<ModelId, ModelFiltersBackup>
final
globalSearchQuery → QueryField?
final
hashCode int
The hash code for this object.
no setterinherited
isError bool
final
isLoading bool
final
model Model
final
modelFiltersBackup → ModelFiltersBackup
no setter
notFoundAnything bool
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
query → QueryField?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort → Sort?
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
totalPages int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() String
A string representation of this object.
inherited

Operators

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