PageToken class

Opaque continuation token for a paginated list.

Hold it in your state and pass it back to the matching ...NextPage(...) call to fetch the following page. A null token means there are no more pages. Each list owns its own token, so independent lists never interfere.

Constructors

PageToken({String? url, String? id, List<String>? ids, Map<String, String>? cookies, Uint8List? body})
const

Properties

body Uint8List?
final
cookies Map<String, String>?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
ids List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDto() → PageDto
Serializes back to the Pigeon DTO for a ...NextPage host call.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDto(PageDto? d) PageToken?
Builds a PageToken from a host PageDto, or null if there is no next page.