builder method
Widget
builder(
- BuildContext context,
- EasyRefresh easyRefresh,
- ValueNotifier<
bool> focusNotifier, - ValueNotifier<
TaskState> taskNotifier, - ValueNotifier<
bool> callLoadNotifier, - ValueNotifier<
double> extraExtentNotifier,
inherited
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;
}
},
);
}