TrayRequestMetadata class

Contains meta information about a specific request, like pagination data and result information

If you want to store custom metadata, you can use extra to store it.

Constructors

TrayRequestMetadata({required int currentPage, required int limit, required int? totalPages, required bool hasNextPage, required bool hasPreviousPage, int? totalResults, Map<String, String> extra = const {}})

Properties

currentPage int
final
extra Map<String, String>
Can be used to store custom meta data apart from the one above
final
hashCode int
The hash code for this object.
no setterinherited
hasNextPage bool
final
hasPreviousPage bool
final
limit int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPages int?
final
totalResults 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