PaginationModel<T> class

Constructors

PaginationModel({int totalCount = 0, int pageIndex = 0, int pageSize = 0, List<T> data = const []})
PaginationModel.fromJson(Map<String, dynamic> json, T fromJson(Map<String, dynamic>))
factory

Properties

data List<T>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pageIndex int
getter/setter pair
pageSize int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int
getter/setter pair

Methods

add(PaginationModel<T> pagination) → void
addAll(List<T> datas) → void
clear() → void
getLength() int
hasNextPage() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(dynamic toElement(T)) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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