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,
double triggerOffset = 60,
bool clamping = false,
IndicatorPosition position = IndicatorPosition.behind,
Duration processedDuration = Duration.zero,
physics.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,
this.foregroundColor,
this.userWaterDrop = true,
this.backgroundColor,
this.emptyWidget,
}) : super(
triggerOffset: triggerOffset,
clamping: clamping,
processedDuration: processedDuration,
spring: spring,
readySpringBuilder: readySpringBuilder,
springRebound: springRebound,
frictionFactor: frictionFactor ??
(userWaterDrop && infiniteOffset == null
? kCupertinoFrictionFactor
: null),
horizontalFrictionFactor: kCupertinoHorizontalFrictionFactor,
safeArea: safeArea,
infiniteOffset: infiniteOffset,
hitOver: hitOver,
infiniteHitOver: infiniteHitOver,
position: position,
hapticFeedback: hapticFeedback,
triggerWhenRelease: triggerWhenRelease,
maxOverOffset: maxOverOffset,
);