CupertinoHeader constructor
const
CupertinoHeader({
- Key? key,
- double triggerOffset = 60,
- bool clamping = false,
- IndicatorPosition position = IndicatorPosition.behind,
- Duration processedDuration = Duration.zero,
- SpringDescription? spring,
- SpringBuilder? readySpringBuilder,
- bool springRebound = false,
- FrictionFactor? frictionFactor,
- bool safeArea = true,
- double? infiniteOffset,
- bool? hitOver,
- bool? infiniteHitOver,
- bool hapticFeedback = false,
- bool triggerWhenRelease = false,
- double maxOverOffset = double.infinity,
- Color? foregroundColor,
- bool userWaterDrop = true,
- Color? backgroundColor,
- Widget? emptyWidget,
Implementation
const CupertinoHeader({
this.key,
super.triggerOffset = 60,
super.clamping = false,
super.position = IndicatorPosition.behind,
super.processedDuration = Duration.zero,
super.spring,
super.readySpringBuilder,
super.springRebound = false,
FrictionFactor? frictionFactor,
super.safeArea,
super.infiniteOffset,
super.hitOver,
super.infiniteHitOver,
super.hapticFeedback,
super.triggerWhenRelease,
super.maxOverOffset,
this.foregroundColor,
this.userWaterDrop = true,
this.backgroundColor,
this.emptyWidget,
}) : super(
frictionFactor: frictionFactor ??
(userWaterDrop && infiniteOffset == null
? kCupertinoFrictionFactor
: null),
horizontalFrictionFactor: kCupertinoHorizontalFrictionFactor,
);