loadPage method

dynamic loadPage({
  1. int? page,
})

Implementation

loadPage({int? page}) {
  if (mutable.blocContext == null) {
    log.warning(
        "Context not yet initialized while loading page '$page' on '${spec.name ?? spec.id}'.");
    return;
  }

  page ??= mutable.lastState.page + 1;
  final data = page == 1 ? [] : mutable.lastState.fullData;

  Lowder.actions.executePageLoadAction(
    mutable.blocContext!,
    bloc,
    page,
    50,
    data,
    loadPageSpec!,
    state,
    evaluatorContext,
  );
}