RequestPaginate class

Constructors

RequestPaginate({String pageParamName: DEFAULT_PARAM_PAGE, int page, String sizeParamName: DEFAULT_PARAM_SIZE, int size: DEFAULT_SIZE})

Properties

page ↔ int
read / write
pageParamName ↔ String
read / write
size ↔ int
read / write
sizeParamName ↔ String
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build() → Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic> map, {String defaultPageParamName: DEFAULT_PARAM_PAGE, int defaultPage, String defaultSizeParamName: DEFAULT_PARAM_SIZE, int defaultSize}) RequestPaginate
getPageTotal({Response response, Map<String, dynamic> headers, int xTotalCount, int size}) → int

Constants

DEFAULT_PARAM_PAGE → const String
'page'
DEFAULT_PARAM_SIZE → const String
'size'
DEFAULT_SIZE → const int
20
PARAM_HEADER_ITEMS_TOTAL → const String
'x-total-count'