NanoCursorPagination class
Cursor and token based pagination strategy.
- Implemented types
Constructors
- NanoCursorPagination({String? cursor, int limit = 20, String cursorKey = 'cursor', String limitKey = 'limit'})
-
Creates a NanoCursorPagination instance.
const
Properties
- cursor → String?
-
The cursor or next token string identifying the page.
final
- cursorKey → String
-
The query parameter key for the cursor (e.g.
cursor,after,token).final - hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
The number of items to return per page.
final
- limitKey → String
-
The query parameter key for the limit (e.g.
limit,size).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? cursor, int? limit, String? cursorKey, String? limitKey}) → NanoCursorPagination - Creates a copy of this pagination with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toQueryParams(
) → Map< String, dynamic> -
Converts the pagination parameters into URL query parameters.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited