KineticCarouselAnimator constructor

const KineticCarouselAnimator({
  1. Key? key,
  2. required Duration period,
  3. required List<Widget> children,
  4. required double radius,
  5. Duration? scaleUpAnimationDelay,
  6. double thetaModifier = 0,
  7. required bool allowScalingUpAnimation,
  8. Duration? scaleUpAnimationDuration,
  9. double? scaleUpFactor,
  10. Curve? scaleUpCurve,
  11. Duration? scaleUpPeriod,
})

constructs the animator widget. if you don't have values to use for any values with the 'scaleUp' prefix. you can check out the static constants in this class that are provided. such as kScaleUpFactor, kScaleUpAnimationDuration, and kScaleUpPeriod which matches to their respective values. kPeriod is also another one, but it doesnt have the scale up prefix

Implementation

const KineticCarouselAnimator(
    {super.key,
    required this.period,
    required this.children,
    required this.radius,
    this.scaleUpAnimationDelay,
    this.thetaModifier = 0,
    required this.allowScalingUpAnimation,
    this.scaleUpAnimationDuration,
    this.scaleUpFactor,
    this.scaleUpCurve,
    this.scaleUpPeriod})
    : assert(
          allowScalingUpAnimation
              ? scaleUpFactor != null &&
                  scaleUpPeriod != null &&
                  scaleUpAnimationDuration != null &&
                  scaleUpCurve != null &&
                  scaleUpAnimationDelay != null
              : true,
          "If using ScalingUpAnimation, values with 'scaleUp' prefixed must be initialized !"),
      assert(children.length > 0,
          "Child Widgets list cannot be empty.");