FancyNavigatorState extension

on

Methods

pushAndRemoveAll<T extends Object?>(Route<T> newRoute) Future<T?>
Push the given route onto the navigator, and then remove all the previous routes.
pushNamedAndRemoveAll<T extends Object?>(String newRouteName, {Object? arguments}) Future<T?>
Push the route with the given name onto the navigator, and then remove all the previous routes.