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 String nextUrl, required String previousUrl, required int total, required int limit, required List<
T> results}) -
const
-
ListEntity.fromJson(Map<
String, dynamic> json, List<T> results) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
final
- nextUrl → String
-
final
- previousUrl → String
-
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'sprops
.no setterinherited - total → int
-
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