builder method

Widget builder(
  1. BuildContext context,
  2. EasyRefresh easyRefresh,
  3. ValueNotifier<bool> focusNotifier,
  4. ValueNotifier<TaskState> taskNotifier,
  5. ValueNotifier<bool> callLoadNotifier,
  6. ValueNotifier<double> extraExtentNotifier,
)

Implementation

Widget builder(BuildContext context,
    EasyRefresh easyRefresh,
    ValueNotifier<bool> focusNotifier,
    ValueNotifier<TaskState> taskNotifier,
    ValueNotifier<bool> callLoadNotifier,
    ValueNotifier<double> extraExtentNotifier) {
  return EasyRefreshSliverLoadControl(
    loadIndicatorExtent: extent,
    loadTriggerPullDistance: triggerDistance,
    builder: contentBuilder,
    completeDuration: completeDuration,
    onLoad: easyRefresh.onLoad,
    focusNotifier: focusNotifier,
    taskNotifier: taskNotifier,
    extraExtentNotifier: extraExtentNotifier,
    callLoadNotifier: callLoadNotifier,
    taskIndependence: easyRefresh.taskIndependence,
    enableControlFinishLoad: easyRefresh.enableControlFinishLoad,
    enableInfiniteLoad: enableInfiniteLoad,
    //enableInfiniteLoad: enableInfiniteLoad && !float,
    enableHapticFeedback: enableHapticFeedback,
    //footerFloat: float,
    safeArea: safeArea,
    padding: padding,
    bindLoadIndicator: (finishLoad, resetLoadState) {
      if (easyRefresh.controller != null) {
        easyRefresh.controller!.finishLoadCallBack = finishLoad;
        easyRefresh.controller!.resetLoadStateCallBack = resetLoadState;
      }
    },
  );
}