ListenerHeader constructor
const
ListenerHeader({
- required IndicatorStateListenable listenable,
- required double triggerOffset,
- bool clamping = true,
- 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,
- bool hapticFeedback = false,
- double? secondaryTriggerOffset,
- double secondaryVelocity = kDefaultSecondaryVelocity,
- double? secondaryDimension,
- double secondaryCloseTriggerOffset = kDefaultSecondaryCloseTriggerOffset,
- bool notifyWhenInvisible = false,
- bool triggerWhenReach = false,
- bool triggerWhenRelease = false,
- bool triggerWhenReleaseNoWait = false,
- double maxOverOffset = double.infinity,
Implementation
const ListenerHeader({
required IndicatorStateListenable super.listenable,
required super.triggerOffset,
super.clamping = true,
super.processedDuration,
super.spring,
super.horizontalSpring,
super.readySpringBuilder,
super.horizontalReadySpringBuilder,
super.springRebound,
super.frictionFactor,
super.horizontalFrictionFactor,
super.safeArea,
super.infiniteOffset,
super.hitOver,
super.infiniteHitOver,
super.hapticFeedback,
super.secondaryTriggerOffset,
super.secondaryVelocity,
super.secondaryDimension,
super.secondaryCloseTriggerOffset,
super.notifyWhenInvisible,
super.triggerWhenReach,
super.triggerWhenRelease,
super.triggerWhenReleaseNoWait,
super.maxOverOffset,
}) : super(
position: IndicatorPosition.custom,
);