InteractableAnimation constructor

const InteractableAnimation({
  1. required InteractableAnimationType type,
  2. Duration duration = const Duration(seconds: 1),
  3. Duration delay = Duration.zero,
  4. bool manualTrigger = false,
  5. double from = 0,
  6. bool? infinite,
})

Creates a new InteractableAnimation instance.

Implementation

const InteractableAnimation({
  required this.type,
  this.duration = const Duration(seconds: 1),
  this.delay = Duration.zero,
  this.manualTrigger = false,
  this.from = 0,
  bool? infinite,
}) : infinite = infinite ?? (type == InteractableAnimationType.bounce || type == InteractableAnimationType.flash || type == InteractableAnimationType.pulse || type == InteractableAnimationType.swing || type == InteractableAnimationType.spin || type == InteractableAnimationType.spinPerfect || type == InteractableAnimationType.dance || type == InteractableAnimationType.roulette);