ScrollTriggerConfiguration constructor

ScrollTriggerConfiguration({
  1. Duration triggerDelay = const Duration(milliseconds: 750),
  2. Duration animationDuration = const Duration(milliseconds: 200),
  3. Curve animationCurve = Curves.easeInOut,
  4. double triggerHeight(
    1. double pageHeight
    )?,
  5. double scrollAmount(
    1. double pageHeight
    )?,
})

Implementation

ScrollTriggerConfiguration({
  this.triggerDelay = const Duration(milliseconds: 750),
  this.animationDuration = const Duration(milliseconds: 200),
  this.animationCurve = Curves.easeInOut,
  this.triggerHeight,
  this.scrollAmount,
}) : assert(
        animationDuration <= triggerDelay,
        'The animation duration must be less or equal to the page trigger delay.',
      );