CupertinoPageRoute<T> constructor

CupertinoPageRoute<T>({@required WidgetBuilder builder, String title, RouteSettings settings, bool maintainState: true, bool fullscreenDialog: false })

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,
  RouteSettings settings,
  this.maintainState = true,
  bool fullscreenDialog = false,
}) : assert(builder != null),
     assert(maintainState != null),
     assert(fullscreenDialog != null),
     super(settings: settings, fullscreenDialog: fullscreenDialog) {
  // ignore: prefer_asserts_in_initializer_lists, https://github.com/dart-lang/sdk/issues/31223
  assert(opaque); // PageRoute makes it return true.
}