RemoteList<T> class

Constructors

RemoteList({required List<T> items, required int totalItem, int page = 1, int pageSize = 10, String? search, List<SortOption>? sortOptions})

Properties

hashCode int
The hash code for this object.
no setterinherited
isEnd bool
no setter
items List<T>
Current local items
getter/setter pair
lastPage int
Get last page based on total available items and page size
no setter
page int
Current page
getter/setter pair
pageSize int
Current page size
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Current search string
getter/setter pair
sortOptions List<SortOption>?
Current sort options
getter/setter pair
totalItem int
Total available remote items
getter/setter pair

Methods

combine(RemoteList<T> newList, {bool concatList = true}) → void
Combine new list into current list
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