pushAndRemoveAll<T extends Object?> static method
Remove all pages and push a new anonymous page route
Implementation
static Future<T?> pushAndRemoveAll<T extends Object?>(
Widget page, {
String? navigator,
RouteType? routeType,
RouteSettings? settings,
bool? maintainState,
bool? fullscreenDialog,
bool? allowSnapshotting,
}) =>
_getContext(navigator).pushAndRemoveAll<T>(
page,
routeType: routeType,
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
allowSnapshotting: allowSnapshotting,
);