BlocxPaginatedInput class

Pagination parameters passed to every paginated use case.

limit and offset follow standard cursor-style pagination:

  • limit controls page size (how many items to fetch).
  • offset is the index of the first item to fetch (i.e. how many items have already been loaded).

Extend this class to attach additional filter or sort parameters:

class SearchUsersInput extends BlocxPaginationInput {
  final String query;
  const SearchUsersInput({required this.query, required super.limit, required super.offset});
}
Implementers

Constructors

BlocxPaginatedInput({required int limit, required int offset})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
limit int
Number of items to load per request.
final
offset int
Zero-based index of the first item to fetch.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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