paginate method

Future<void> paginate(
  1. int page
)

Implementation

Future<void> paginate(int page) async {
  emit(state.copyWith(
    isLoading: true,
    currentPage: page,
  ));
  await makeFiltersBackup();
  await _loadData(modelId: state.model.id, page: page);
}