Header constructor
const
Header({
- required double triggerOffset,
- required bool clamping,
- Duration processedDuration = const Duration(seconds: 1),
- SpringDescription? spring,
- SpringDescription? horizontalSpring,
- SpringBuilder? readySpringBuilder,
- SpringBuilder? horizontalReadySpringBuilder,
- bool springRebound = true,
- FrictionFactor? frictionFactor,
- FrictionFactor? horizontalFrictionFactor,
- bool safeArea = true,
- double? infiniteOffset,
- bool? hitOver,
- bool? infiniteHitOver,
- IndicatorPosition position = IndicatorPosition.above,
- bool hapticFeedback = false,
- double? secondaryTriggerOffset,
- double secondaryVelocity = kDefaultSecondaryVelocity,
- double? secondaryDimension,
- double secondaryCloseTriggerOffset = kDefaultSecondaryCloseTriggerOffset,
- bool notifyWhenInvisible = false,
- IndicatorStateListenable? listenable,
- bool triggerWhenReach = false,
- bool triggerWhenRelease = false,
- bool triggerWhenReleaseNoWait = false,
- double maxOverOffset = double.infinity,
Implementation
const Header({
required double triggerOffset,
required bool clamping,
Duration processedDuration = const Duration(seconds: 1),
physics.SpringDescription? spring,
physics.SpringDescription? horizontalSpring,
SpringBuilder? readySpringBuilder,
SpringBuilder? horizontalReadySpringBuilder,
bool springRebound = true,
FrictionFactor? frictionFactor,
FrictionFactor? horizontalFrictionFactor,
bool safeArea = true,
double? infiniteOffset,
bool? hitOver,
bool? infiniteHitOver,
IndicatorPosition position = IndicatorPosition.above,
bool hapticFeedback = false,
double? secondaryTriggerOffset,
double secondaryVelocity = kDefaultSecondaryVelocity,
double? secondaryDimension,
double secondaryCloseTriggerOffset = kDefaultSecondaryCloseTriggerOffset,
bool notifyWhenInvisible = false,
IndicatorStateListenable? listenable,
bool triggerWhenReach = false,
bool triggerWhenRelease = false,
bool triggerWhenReleaseNoWait = false,
double maxOverOffset = double.infinity,
}) : super(
triggerOffset: triggerOffset,
clamping: clamping,
processedDuration: processedDuration,
spring: spring,
horizontalSpring: horizontalSpring,
readySpringBuilder: readySpringBuilder,
horizontalReadySpringBuilder: horizontalReadySpringBuilder,
springRebound: springRebound,
frictionFactor: frictionFactor,
horizontalFrictionFactor: horizontalFrictionFactor,
safeArea: safeArea,
infiniteOffset: infiniteOffset,
hitOver: hitOver,
infiniteHitOver: infiniteHitOver,
position: position,
hapticFeedback: hapticFeedback,
secondaryTriggerOffset: secondaryTriggerOffset,
secondaryVelocity: secondaryVelocity,
secondaryDimension: secondaryDimension,
secondaryCloseTriggerOffset: secondaryCloseTriggerOffset,
notifyWhenInvisible: notifyWhenInvisible,
listenable: listenable,
triggerWhenReach: triggerWhenReach,
triggerWhenRelease: triggerWhenRelease,
triggerWhenReleaseNoWait: triggerWhenReleaseNoWait,
maxOverOffset: maxOverOffset,
);