MastodonPage<T> class

Generic model representing a paginated list result.

Holds next-page and previous-page cursor values from the Mastodon API's cursor-based pagination (Link header).

Constructors

MastodonPage({required List<T> items, String? nextMaxId, String? prevMinId})
Creates with items as the page contents, and nextMaxId and prevMinId as pagination cursors.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<T>
List of items in the page.
final
nextMaxId String?
max_id cursor for fetching the next page. null if no next page exists.
final
prevMinId String?
min_id cursor for fetching the previous page. null if no previous page exists.
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
toString() String
A string representation of this object.
inherited

Operators

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