AnimatesTransition constructor

AnimatesTransition({
  1. bool replacement = false,
  2. Duration duration = const Duration(milliseconds: 300),
  3. required BuildContext context,
  4. required Widget child,
  5. AnimationType? animation = AnimationType.normal,
})

Implementation

AnimatesTransition({
  this.replacement = false,
  this.duration = const Duration(milliseconds: 300),
  required this.context,
  required this.child,
  this.animation = AnimationType.normal,
}) {
  switch (this.animation) {
    case AnimationType.normal:
      this._normalTransition();
      break;
    case AnimationType.fadeIn:
      this._fadeInTransition();
      break;
    default:
      _normalTransition();
  }
}