Page<T extends Object> class

Constructors

Page({required List<T> items, int page = 1, int pageSize = 10, bool hasNext = false, bool hasPrevious = false})
const
Page.fromJson(String source, List<T> mapper(List<Map<String, dynamic>> map))
factory
Page.fromMap(Map<String, dynamic> map, List<T> mapper(List<Map<String, dynamic>> map))
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(List<Map<String, dynamic>> mapper(List<T> origin)) String
toMap(List<Map<String, dynamic>> mapper(List<T> origin)) Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Page<T> other) bool
The equality operator.
override