ListEntity<T> class

When you get a collection in a response, like with getting a list of files, it is paginated. That is, items in the collection are returned in batches. Every returned batch object is ListEntity instance

Constructors

ListEntity({required int total, required int limit, required List<T> results, String? nextUrl, String? previousUrl, ListEntityTotals? totals})
const
ListEntity.fromJson(Map<String, dynamic> json, List<T> results)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
limit int
Number of the files per page
final
nextUrl String?
Next page URL
final
previousUrl String?
Previous page URL
final
results List<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
total int
Total number of the files of the queried type. The queried type depends on the stored and removed query parameters
final
totals ListEntityTotals?
Since v0.6
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