pop static method

bool pop(
  1. BuildContext context, [
  2. Object? result
])

Pops the top route off the navigator nearest to context.

Implementation

static bool pop(BuildContext context, [Object? result]) {
  return of(context).pop(result);
}