TransitionPage<T> constructor
const
TransitionPage<T> ({
- required Widget child,
- PageTransition? pushTransition,
- PageTransition? popTransition,
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool opaque = true,
- LocalKey? key,
- String? name,
- Object? arguments,
- 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,
);