TransitionsPage constructor

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

Implementation

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