onPopInvoked method

void onPopInvoked(
  1. R? result
)

Completes the pop completer with the given result

Implementation

void onPopInvoked(R? result) {
  if (router.ignorePopCompleters) {
    // if pop completers are ignored then we don't complete the pop completer
    return;
  }
  if (_popCompleter != null && !_popCompleter!.isCompleted) {
    _popCompleter?.complete(result);
  }
}