TransitionPage<T> constructor

const TransitionPage<T>({
  1. required Widget child,
  2. PageTransition? pushTransition,
  3. PageTransition? popTransition,
  4. bool maintainState = true,
  5. bool fullscreenDialog = false,
  6. bool opaque = true,
  7. LocalKey? key,
  8. String? name,
  9. Object? arguments,
  10. String? restorationId,
})

Initialize a transition page.

If pushTransition or popAnimation are null, the platform default transition is used. This is the Cupertino animation on iOS and macOS, and the fade upwards animation on all other platforms.

Implementation

const TransitionPage({
  required Widget child,
  this.pushTransition,
  this.popTransition,
  bool maintainState = true,
  bool fullscreenDialog = false,
  bool opaque = true,
  LocalKey? key,
  String? name,
  Object? arguments,
  String? restorationId,
}) : super(
        child: child,
        arguments: arguments,
        restorationId: restorationId,
        maintainState: maintainState,
        fullscreenDialog: fullscreenDialog,
        opaque: opaque,
        key: key,
        name: name,
      );