pop<T extends Object?> method
void
pop<T extends Object?>([
- T? result
Pops the top-most route.
Implementation
void pop<T extends Object?>([T? result]) {
final NavigatorState? state = _findCurrentNavigator();
if (state == null || !state.canPop()) {
throw GoError('There is nothing to pop');
}
state.pop(result);
}