reset method
void
reset()
Resets the stack
Implementation
void reset() {
final navigatorKey = _navigatorKeys[_currentIndex];
if (navigatorKey.currentState == null) {
return;
}
navigatorKey.currentState?.popUntil((route) {
return route.settings.name == _stacks[_currentIndex].locations.first.path;
});
}