pushAndRemoveAll<T extends Object?> method
Remove all pages and push a new anonymous page route
Implementation
Future<T?> pushAndRemoveAll<T extends Object?>(
Widget page, {
RouteType? routeType,
RouteSettings? settings,
bool? maintainState,
bool? fullscreenDialog,
bool? allowSnapshotting,
}) =>
Navigator.of(this).pushAndRemoveUntil<T>(
_createRoute<T>(
page,
routeType: routeType,
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
allowSnapshotting: allowSnapshotting,
),
(_) => false,
);