MBPaginatedResponse<T> class Null safety

This class represents a paginated response. In items there's the actual elements of the response, all other properties are additional information about number of elements returned.

Constructors

MBPaginatedResponse({required int from, required int to, required int total, required List<T> items})
Initializes a paginated response, with the items and information about pagination.

Properties

from int
The starting point of this block of items.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
items List<T>
The items returned by the API.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
to int
The end point of this block of items.
final
total int
The total number of items in MBurger.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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