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
itemsas the page contents, andnextMaxIdandprevMinIdas 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_idcursor for fetching the next page.nullif no next page exists.final - prevMinId → String?
-
min_idcursor for fetching the previous page.nullif 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