popToRoot method
void
popToRoot()
Clears all elements from the path, popping all the way back to the root.
Implementation
void popToRoot() {
if (_stack.isNotEmpty) {
_stack.clear();
notifyListeners();
}
}
Clears all elements from the path, popping all the way back to the root.
void popToRoot() {
if (_stack.isNotEmpty) {
_stack.clear();
notifyListeners();
}
}