PagePagination class abstract

Inheritance

Constructors

PagePagination({int currentPage, int perPage, int total})
const
factory

Properties

copyWith → _$$PagePaginationImplCopyWith<_$PagePaginationImpl>
no setter
currentPage int
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNextPage bool
Returns true if the pagination has a next page
no setterinherited
isCursorBased bool
Returns true if the pagination is cursor based
no setterinherited
isPageBased bool
Returns true if the pagination is page based
no setterinherited
perPage int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total int
no setter

Methods

map<TResult extends Object?>({required TResult page(PagePagination value), required TResult cursor(CursorPagination value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? page(PagePagination value)?, TResult? cursor(CursorPagination value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult page(PagePagination value)?, TResult cursor(CursorPagination value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult page(int currentPage, int perPage, int total)?, TResult cursor(String startCursor, String endCursor, bool hasNextPage)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the pagination to a json map
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult page(int currentPage, int perPage, int total), required TResult cursor(String startCursor, String endCursor, bool hasNextPage)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? page(int currentPage, int perPage, int total)?, TResult? cursor(String startCursor, String endCursor, bool hasNextPage)?}) → TResult?
inherited

Operators

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