RemotePage class final

A page of server changes.

Constructors

RemotePage({required Object? expectedCheckpoint, required Object? nextCheckpoint, required List<RemoteChange> changes})
changes read after expectedCheckpoint (the current checkpoint), stored with nextCheckpoint.
const

Properties

changes → List<RemoteChange>
The changes, in feed order.
final
expectedCheckpoint → Object?
The checkpoint the page was read after (null before the first page).
final
hashCode → int
The hash code for this object.
no setterinherited
nextCheckpoint → Object?
The checkpoint stored with the page.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The protocol fields.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Map<Object?, Object?> json) → Result<RemotePage, DbError>
The page in a request.