ListenerHeader constructor

const ListenerHeader({
  1. required IndicatorStateListenable listenable,
  2. required double triggerOffset,
  3. bool clamping = true,
  4. Duration processedDuration = const Duration(seconds: 1),
  5. SpringDescription? spring,
  6. SpringDescription? horizontalSpring,
  7. SpringBuilder? readySpringBuilder,
  8. SpringBuilder? horizontalReadySpringBuilder,
  9. bool springRebound = true,
  10. FrictionFactor? frictionFactor,
  11. FrictionFactor? horizontalFrictionFactor,
  12. bool safeArea = true,
  13. double? infiniteOffset,
  14. bool? hitOver,
  15. bool? infiniteHitOver,
  16. bool hapticFeedback = false,
  17. double? secondaryTriggerOffset,
  18. double secondaryVelocity = kDefaultSecondaryVelocity,
  19. double? secondaryDimension,
  20. double secondaryCloseTriggerOffset = kDefaultSecondaryCloseTriggerOffset,
  21. bool notifyWhenInvisible = false,
  22. bool triggerWhenReach = false,
  23. bool triggerWhenRelease = false,
  24. bool triggerWhenReleaseNoWait = false,
  25. 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,
      );