navigateBackToRoot method
override
Navigates back to the root of the navigation stack.
Implementation
@override
void navigateBackToRoot(BuildContext context) {
Navigator.popUntil(context, (route) => route.isFirst);
}
Navigates back to the root of the navigation stack.
@override
void navigateBackToRoot(BuildContext context) {
Navigator.popUntil(context, (route) => route.isFirst);
}