pop<T extends Object?> method
- T? result
Asks Navigator to pop, respecting PopScope and pageless dialogs.
Implementation
Future<bool> pop<T extends Object?>([T? result]) async {
final navigator = navigatorKey.currentState;
return navigator == null ? false : await navigator.maybePop<T>(result);
}