CupertinoPageRoute<T> constructor

CupertinoPageRoute<T>(
  1. {@required WidgetBuilder builder,
  2. String title,
  3. RouteSettings settings,
  4. bool maintainState: true,
  5. 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),
     assert(opaque),
     super(settings: settings, fullscreenDialog: fullscreenDialog);