copyWithCursor method

PaginatedRequest copyWithCursor(
  1. Cursor cursor
)

A copy of this request that asks for the page at cursor.

Copying keeps every entry the caller put on the request, including ones this package does not read.

Implementation

PaginatedRequest copyWithCursor(Cursor cursor) =>
    PaginatedRequest._fromMap({..._value, Keys.cursor: cursor});