MaterialPageRoute<T> constructor

MaterialPageRoute<T>({
  1. required WidgetBuilder builder,
  2. RouteSettings? settings,
  3. bool? requestFocus,
  4. bool maintainState = true,
  5. bool fullscreenDialog = false,
  6. bool allowSnapshotting = true,
  7. bool barrierDismissible = false,
})

Construct a MaterialPageRoute whose contents are defined by builder.

Implementation

MaterialPageRoute({
  required this.builder,
  super.settings,
  super.requestFocus,
  this.maintainState = true,
  super.fullscreenDialog,
  super.allowSnapshotting = true,
  super.barrierDismissible = false,
}) {
  assert(opaque);
}