MaterialPageRoute<T> constructor

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

Construct a MaterialPageRoute whose contents are defined by builder.

Implementation

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