RefreshConfiguration.copyAncestor constructor
RefreshConfiguration.copyAncestor({
- Key? key,
- required BuildContext context,
- required Widget child,
- IndicatorBuilder? headerBuilder,
- double? dragSpeedRatio,
- bool? enableScrollWhenTwoLevel,
- bool? enableBallisticRefresh,
- bool? enableBallisticLoad,
- bool? enableLoadingWhenNoData,
- SpringDescription? springDescription,
- bool? enableScrollWhenRefreshCompleted,
- bool? enableLoadingWhenFailed,
- double? twiceTriggerDistance,
- double? closeTwoLevelDistance,
- bool? skipCanRefresh,
- double? maxOverScrollExtent,
- double? maxUnderScrollExtent,
- double? topHitBoundary,
- double? bottomHitBoundary,
- double? headerTriggerDistance,
- bool? enableRefreshVibrate,
- bool? enableLoadMoreVibrate,
Implementation
RefreshConfiguration.copyAncestor({
super.key,
required BuildContext context,
required this.child,
IndicatorBuilder? headerBuilder,
IndicatorBuilder? footerBuilder,
double? dragSpeedRatio,
ShouldFollowContent? shouldFooterFollowWhenNotFull,
bool? enableScrollWhenTwoLevel,
bool? enableBallisticRefresh,
bool? enableBallisticLoad,
bool? enableLoadingWhenNoData,
SpringDescription? springDescription,
bool? enableScrollWhenRefreshCompleted,
bool? enableLoadingWhenFailed,
double? twiceTriggerDistance,
double? closeTwoLevelDistance,
bool? skipCanRefresh,
double? maxOverScrollExtent,
double? maxUnderScrollExtent,
double? topHitBoundary,
double? bottomHitBoundary,
double? headerTriggerDistance,
double? footerTriggerDistance,
bool? enableRefreshVibrate,
bool? enableLoadMoreVibrate,
bool? hideFooterWhenNotFull,
}) : assert(RefreshConfiguration.of(context) != null,
"search RefreshConfiguration anscestor return null,please Make sure that RefreshConfiguration is the ancestor of that element"),
headerBuilder =
headerBuilder ?? RefreshConfiguration.of(context)!.headerBuilder,
footerBuilder =
footerBuilder ?? RefreshConfiguration.of(context)!.footerBuilder,
dragSpeedRatio =
dragSpeedRatio ?? RefreshConfiguration.of(context)!.dragSpeedRatio,
twiceTriggerDistance = twiceTriggerDistance ??
RefreshConfiguration.of(context)!.twiceTriggerDistance,
headerTriggerDistance = headerTriggerDistance ??
RefreshConfiguration.of(context)!.headerTriggerDistance,
footerTriggerDistance = footerTriggerDistance ??
RefreshConfiguration.of(context)!.footerTriggerDistance,
springDescription = springDescription ??
RefreshConfiguration.of(context)!.springDescription,
hideFooterWhenNotFull = hideFooterWhenNotFull ??
RefreshConfiguration.of(context)!.hideFooterWhenNotFull,
maxOverScrollExtent = maxOverScrollExtent ??
RefreshConfiguration.of(context)!.maxOverScrollExtent,
maxUnderScrollExtent = maxUnderScrollExtent ??
RefreshConfiguration.of(context)!.maxUnderScrollExtent,
topHitBoundary =
topHitBoundary ?? RefreshConfiguration.of(context)!.topHitBoundary,
bottomHitBoundary = bottomHitBoundary ??
RefreshConfiguration.of(context)!.bottomHitBoundary,
skipCanRefresh =
skipCanRefresh ?? RefreshConfiguration.of(context)!.skipCanRefresh,
enableScrollWhenRefreshCompleted = enableScrollWhenRefreshCompleted ??
RefreshConfiguration.of(context)!.enableScrollWhenRefreshCompleted,
enableScrollWhenTwoLevel = enableScrollWhenTwoLevel ??
RefreshConfiguration.of(context)!.enableScrollWhenTwoLevel,
enableBallisticRefresh = enableBallisticRefresh ??
RefreshConfiguration.of(context)!.enableBallisticRefresh,
enableBallisticLoad = enableBallisticLoad ??
RefreshConfiguration.of(context)!.enableBallisticLoad,
enableLoadingWhenNoData = enableLoadingWhenNoData ??
RefreshConfiguration.of(context)!.enableLoadingWhenNoData,
enableLoadingWhenFailed = enableLoadingWhenFailed ??
RefreshConfiguration.of(context)!.enableLoadingWhenFailed,
closeTwoLevelDistance = closeTwoLevelDistance ??
RefreshConfiguration.of(context)!.closeTwoLevelDistance,
enableRefreshVibrate = enableRefreshVibrate ??
RefreshConfiguration.of(context)!.enableRefreshVibrate,
enableLoadMoreVibrate = enableLoadMoreVibrate ??
RefreshConfiguration.of(context)!.enableLoadMoreVibrate,
shouldFooterFollowWhenNotFull = shouldFooterFollowWhenNotFull ??
RefreshConfiguration.of(context)!.shouldFooterFollowWhenNotFull,
super(child: child);