ListRefresher constructor

const ListRefresher({
  1. Key? key,
  2. required Widget child,
  3. IndicatorController? controller,
  4. Future<void> onLoadTop()?,
  5. Future<void> onLoadBottom()?,
})

Creates a ListRefresher instance with the required scrollable child widget.

The child is the scrollable content (e.g., ListView or SliverList) that will be wrapped for refresh support. Provide onLoadTop for top-edge pull-to-refresh (typical data reload) and/or onLoadBottom for bottom-edge loading (e.g., infinite scroll). Optionally supply a custom controller for manual refresh control. The widget automatically configures trigger modes based on provided callbacks, with a 100-unit pull distance to arm the refresh. Integrates CircularProgressIndicator styled via ArcaneTheme for visual feedback during loading.

Implementation

const ListRefresher({
  super.key,
  required this.child,
  this.controller,
  this.onLoadTop,
  this.onLoadBottom,
});