PaginableList<T> class

A List object represents a requested sequence of other objects (Cards, Sets, etc). List objects may be paginated, and also include information about issues raised when generating the list.

Annotations
  • @JsonSerializable(genericArgumentFactories: true)

Constructors

PaginableList({required List<T> data, required bool hasMore, Uri? nextPage, int? totalCards, List<String>? warnings})
Constructs a PaginableList by setting its properties.
PaginableList.fromJson(Map<String, dynamic> json, T fromJsonT(Object?))
Constructs a PaginableList from JSON.
factory

Properties

data List<T>
An array of the requested objects, in a specific order.
final
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
True if this List is paginated and there is a page beyond the current page.
final
length int
The number of objects in this list.
no setter
nextPage Uri?
If there is a page beyond the current page, this field will contain a full API URI to that page. You may submit a HTTP GET request to that URI to continue paginating forward on this List.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCards int?
If this is a list of Card objects, this field will contain the total number of cards found across all pages.
final
warnings List<String>?
An array of human-readable warnings issued when generating this list, as strings. Warnings are non-fatal issues that the API discovered with your input. In general, they indicate that the List will not contain all of the information you requested. You should fix the warnings and re-submit your request.
final

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
operator [](int index) → T
Returns the index element.