Cursor class final

Opaque cursor for CursorPaginator, encoded like Laravel's Cursor: URL-safe unpadded base64 of the PHP JSON of the boundary row's ordered column values plus _pointsToNextItems, so cursors are interchangeable with a Laravel app over the same table.

Constructors

Cursor(Map<String, Object?> values, {bool pointsToNext = true})
The position after (or before, unless pointsToNext) the row whose ordered columns hold values.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
pointsToNext → bool
Whether the cursor reads forward (the next page) or backward.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, Object?>
The ordered columns' values of the row the cursor points past.
final

Methods

encode() → String
The cursor as a URL-safe base64 string, as Laravel encodes it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(String? encoded) → Cursor?
The cursor in a ?cursor= value, or null when it is missing or invalid.