SwingAnimation constructor

const SwingAnimation({
  1. Alignment alignment = Alignment.topCenter,
  2. int repeats = 2,
  3. double angle = pi / 12,
  4. Duration duration = const Duration(seconds: 1),
  5. Duration delay = Duration.zero,
  6. Curve curve = Curves.linear,
  7. CustomAnimationControl control = CustomAnimationControl.PLAY,
})

Implementation

const SwingAnimation(
    {this.alignment = Alignment.topCenter,
    this.repeats = 2,
    this.angle = pi / 12,
    Duration duration = const Duration(seconds: 1),
    Duration delay = Duration.zero,
    Curve curve = Curves.linear,
    CustomAnimationControl control = CustomAnimationControl.PLAY})
    : super(duration: duration, delay: delay, curve: curve, control: control);