backToRoot static method
void
backToRoot()
Goes back to the first page.
Implementation
static void backToRoot() => Navigator.of(context).popUntil((Route<dynamic> route) => route.isFirst);
Goes back to the first page.
static void backToRoot() => Navigator.of(context).popUntil((Route<dynamic> route) => route.isFirst);