DelayedWidget constructor

DelayedWidget({
  1. Key? key,
  2. required Widget child,
  3. Duration animationDuration = const Duration(milliseconds: 300),
  4. Duration delayDuration = Duration.zero,
  5. DelayedAnimations animation = DelayedAnimations.SLIDE_FROM_BOTTOM,
  6. bool enabled = true,
})

Implementation

DelayedWidget({
  Key? key,

  /// The Widget to be animated
  required this.child,

  /// Set the duration of the animation
  this.animationDuration = const Duration(milliseconds: 300),

  /// Set the duration of delay to start animation
  this.delayDuration = Duration.zero,

  /// Set the animation
  this.animation = DelayedAnimations.SLIDE_FROM_BOTTOM,

  /// Set animation enabled/disbled
  this.enabled = true,
}) : super(key: key);