CupertinoPageRoute<T> constructor
Null safety
- {required WidgetBuilder builder,
- String? title,
- RouteSettings? settings,
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool preferRasterization = true}
Creates a page route for use in an iOS designed app.
The builder, maintainState, and fullscreenDialog arguments must not be null.
Implementation
CupertinoPageRoute({
required this.builder,
this.title,
super.settings,
this.maintainState = true,
super.fullscreenDialog,
super.preferRasterization = true,
}) : assert(builder != null),
assert(maintainState != null),
assert(fullscreenDialog != null) {
assert(opaque);
}