paginationTask property
Shared paginated task used by initial load, next-page load, and refresh.
Override this when all paginated operations use the same use case.
Example:
@override
BlocxPaginatedUseCaseTask<GetCategoriesInput, CategoryEntity>?
get paginationTask {
return BlocxPaginatedUseCaseTask<GetCategoriesInput, CategoryEntity>(
useCase: getCategoriesUseCase,
inputBuilder: (offset, limit) {
return GetCategoriesInput(
offset: offset,
limit: limit,
);
},
);
}
Implementation
BlocxPaginatedUseCaseTask<BlocxPaginatedInput, T>? get paginationTask => null;