LoadControlBuilder typedef

LoadControlBuilder = Widget Function(BuildContext context, LoadMode loadState, double pulledExtent, double loadTriggerPullDistance, double loadIndicatorExtent, AxisDirection axisDirection, bool float, Duration? completeDuration, bool enableInfiniteLoad, bool success, bool noMore)

Signature for a builder that can create a different widget to show in the refresh indicator space depending on the current state of the refresh control and the space available.

The loadTriggerPullDistance and loadIndicatorExtent parameters are the same values passed into the EasyRefreshSliverLoadControl.

The pulledExtent parameter is the currently available space either from overscrolling or as held by the sliver during refresh.

Implementation

typedef LoadControlBuilder = Widget Function(
    BuildContext context,
    LoadMode loadState,
    double pulledExtent,
    double loadTriggerPullDistance,
    double loadIndicatorExtent,
    AxisDirection axisDirection,
    bool float,
    Duration? completeDuration,
    bool enableInfiniteLoad,
    bool success,
    bool noMore);