pop<T extends Object?> method
Pop the top-most route off the current screen.
If the top-most route is a pop up or dialog, this method pops it instead of any GoRoute under it.
Ensure that the value of routeInformationProvider is synced
with routerDelegate.currentConfiguration.
Implementation
@override
void pop<T extends Object?>([T? result]) {
calls.add(NavigationCall(NavigationKind.pop, location, result: result));
if (canPop()) _stack.removeLast().complete(result);
}