PaginatedResult<T> class
Holds a paginated set of results with metadata.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNextPage → bool
-
Returns
trueif there is a next page.no setter - hasPrevPage → bool
-
Returns
trueif there is a previous page.no setter -
items
→ List<
T> -
The list of items on this page.
final
- lastPage → int
-
The total number of pages.
final
- page → int
-
The current page index (1-based).
final
- perPage → int
-
The maximum number of items per page.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → int
-
The total number of items across all pages.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the paginated result to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited