pushRoot static method

DialogShower pushRoot(
  1. Widget widget, {
  2. RouteSettings? settings,
  3. bool? fixed,
  4. double? x,
  5. double? y,
  6. double? width,
  7. double? height,
  8. String? key,
})

Implementation

static DialogShower pushRoot(
  Widget widget, {
  RouteSettings? settings,
  bool? fixed,
  double? x,
  double? y,
  double? width,
  double? height,
  String? key,
}) {
  return DialogWrapper.show(widget, fixed: fixed, x: x, y: y, width: width, height: height, key: key)
    ..isWrappedByNavigator = true
    ..wrappedNavigatorInitialName = settings?.name;
}