flutter_nestjs_paginate library

Classes

Btw
Represents the $btw operator.
Contains
Represents the $contains operator. Applicable when the filtered column is an array.
Eq
Represents the $eq operator.
FilterOperator
A family of filter operators and suffixes used in pagination filtering.
Gt
Represents the $gt and $gte operators.
Ilike
Represents the $ilike operator.
In
Represents the $in operator.
Lt
Represents the $lt and $lte operators.
Not
Represents the '$not:{other operator}'. Takes a FilterOperator as its value.
Null
Represents the $null operator.
Or
Represents the '$or:{other operator}'.
PaginateConfig
A class mirroring the client-facing side of PaginateConfig of nestjs-paginate.
Paginated<TDto>
A DTO matching the result of paginate function from nestjs-paginate.
PaginatedMetadata
A metadata describing the pagination.
PaginatedView<TModel>
A widget providing a framework for building controllable paginated data views powered by nestjs-paginate on backend. It combines together the controller for pagination, viewBuilder for building the presentation of the data of type TModel received from a fetcher. It handles displaying of errors with errorBuilder and shows a loadingIndicator.
PaginationController
A listenable controller for pagination view, compatible with nestjs-paginate API.
Sw
Represents the $sw operator, which stands for 'starts with'.

Enums

SortOrder
An enumeration of {asc, desc}.

Typedefs

ErrorBuilder = Widget Function(BuildContext context, Object error)
A WidgetBuilder which also takes an error.
FromJsonDecoder<T> = T Function(JsonMap json)
A function decoding an object of type T from the given json.
PaginatedDataFetcher<TModel> = FutureOr<Paginated<TModel>> Function(BuildContext context, QueryParams params)
A function that makes a paginated request. Takes a BuildContext and QueryParams in a ready-to-send state.
PaginatedViewBuilder<TModel> = Widget Function(BuildContext context, Paginated<TModel> data)
A WidgetBuilder which also takes a Paginated<TModel> data. Should build a presentation for the Paginated.data.
QueryParams = Map<String, Object?>
A Map from String keys matching any values.