pop<T extends Object?> method

Future<bool> pop<T extends Object?>([
  1. 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);
}