init static method

PagingHelper init({
  1. Widget? loader,
  2. WidgetCallback? error,
})

Implementation

static PagingHelper init({Widget? loader, WidgetCallback? error}) =>
    PagingHelper(
      page: 1,
      loader: loader ?? const Center(child: CircularProgressIndicator()),
      error: error,
    );