Pagination<T> class

Constructors

Pagination({required int page, required int total, required int pageSize, required int lastPage, required List<T> results})
const
Pagination.empty({int pageSize = 20})
const
Pagination.fromJson(Map json, T itemBuilder(Map<String, Object?>))

Properties

hashCode int
The hash code for this object.
no setterinherited
isLastPage bool
no setter
lastPage int
final
page int
final
pageSize int
final
results List<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total int
final

Methods

add(T obj) Pagination<T>
addAll(Iterable<T> objs) Pagination<T>
append(Pagination other) Pagination<T>
insert(int index, T obj) Pagination<T>
next([int? value]) Pagination<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous() Pagination<T>
toString() String
A string representation of this object.
inherited

Operators

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