replaceAll method
- BuildContext context,
- String path
override
Replaces the entire navigation stack with a new route.
path is the new root route.
Implementation
@override
Future<void> replaceAll(BuildContext context, String path) async {
Navigator.pushNamedAndRemoveUntil(context, path, (route) => false);
}