AnimationPreferences constructor

const AnimationPreferences({
  1. double magnitude = 1,
  2. Duration offset = Duration.zero,
  3. Duration duration = const Duration(seconds: 1),
  4. AnimationPlayStates? autoPlay = AnimationPlayStates.Forward,
  5. AnimationStatusListener? animationStatusListener,
})

Constructor with defaults.

Implementation

const AnimationPreferences({
  this.magnitude = 1,
  this.offset = Duration.zero,
  this.duration = const Duration(seconds: 1),
  this.autoPlay = AnimationPlayStates.Forward,
  this.animationStatusListener,
});