SecondaryHeader constructor

SecondaryHeader({
  1. required Header header,
  2. required double secondaryTriggerOffset,
  3. double secondaryVelocity = kDefaultSecondaryVelocity,
  4. double? secondaryDimension,
  5. double secondaryCloseTriggerOffset = kDefaultSecondaryCloseTriggerOffset,
  6. IndicatorStateListenable? listenable,
})

Implementation

SecondaryHeader({
  required this.header,
  required double super.secondaryTriggerOffset,
  super.secondaryVelocity,
  super.secondaryDimension,
  super.secondaryCloseTriggerOffset,
  IndicatorStateListenable? listenable,
}) : super(
        triggerOffset: header.triggerOffset,
        clamping: header.clamping,
        processedDuration: header.processedDuration,
        spring: header.spring,
        horizontalSpring: header.horizontalSpring,
        readySpringBuilder: header.readySpringBuilder,
        horizontalReadySpringBuilder: header.horizontalReadySpringBuilder,
        springRebound: header.springRebound,
        frictionFactor: header.frictionFactor,
        horizontalFrictionFactor: header.horizontalFrictionFactor,
        safeArea: header.safeArea,
        infiniteOffset: header.infiniteOffset,
        hitOver: header.hitOver,
        infiniteHitOver: header.infiniteHitOver,
        position: header.position,
        hapticFeedback: header.hapticFeedback,
        notifyWhenInvisible: header.notifyWhenInvisible,
        listenable: listenable ?? header.listenable,
        triggerWhenReach: header.triggerWhenReach,
        triggerWhenRelease: header.triggerWhenRelease,
        triggerWhenReleaseNoWait: header.triggerWhenReleaseNoWait,
        maxOverOffset: header.maxOverOffset,
      );