RefreshConfiguration constructor
RefreshConfiguration({
- Key? key,
- required Widget child,
- IndicatorBuilder? headerBuilder,
- double dragSpeedRatio = 1.0,
- bool enableScrollWhenTwoLevel = true,
- bool enableLoadingWhenNoData = false,
- bool enableBallisticRefresh = false,
- SpringDescription springDescription = const SpringDescription(mass: 2.2, stiffness: 150, damping: 16),
- bool enableScrollWhenRefreshCompleted = false,
- bool enableLoadingWhenFailed = true,
- double twiceTriggerDistance = 150.0,
- double closeTwoLevelDistance = 80.0,
- bool skipCanRefresh = false,
- double? maxOverScrollExtent,
- bool enableBallisticLoad = true,
- double? maxUnderScrollExtent,
- double headerTriggerDistance = 80.0,
- bool enableRefreshVibrate = false,
- bool enableLoadMoreVibrate = false,
- double? topHitBoundary,
- double? bottomHitBoundary,
Implementation
RefreshConfiguration(
{Key? key,
required this.child,
this.headerBuilder,
this.footerBuilder,
this.dragSpeedRatio = 1.0,
this.shouldFooterFollowWhenNotFull,
this.enableScrollWhenTwoLevel = true,
this.enableLoadingWhenNoData = false,
this.enableBallisticRefresh = false,
this.springDescription = const SpringDescription(
mass: 2.2,
stiffness: 150,
damping: 16,
),
this.enableScrollWhenRefreshCompleted = false,
this.enableLoadingWhenFailed = true,
this.twiceTriggerDistance = 150.0,
this.closeTwoLevelDistance = 80.0,
this.skipCanRefresh = false,
this.maxOverScrollExtent,
this.enableBallisticLoad = true,
this.maxUnderScrollExtent,
this.headerTriggerDistance = 80.0,
this.footerTriggerDistance = 15.0,
this.hideFooterWhenNotFull = false,
this.enableRefreshVibrate = false,
this.enableLoadMoreVibrate = false,
this.topHitBoundary,
this.bottomHitBoundary})
: assert(headerTriggerDistance > 0),
assert(twiceTriggerDistance > 0),
assert(closeTwoLevelDistance > 0),
assert(dragSpeedRatio > 0),
super(key: key, child: child);