CursorPagination class abstract

Inheritance

Constructors

CursorPagination({required String startCursor, required String endCursor, required bool hasNextPage})
const
factory

Properties

copyWith → _$$CursorPaginationImplCopyWith<_$CursorPaginationImpl>
no setter
endCursor String
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNextPage bool
Returns true if the pagination has a next page
no setteroverride
isCursorBased bool
Returns true if the pagination is cursor based
no setterinherited
isPageBased bool
Returns true if the pagination is page based
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startCursor String
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