pop static method

void pop(
  1. BuildContext context
)

Pops the current page from the navigation stack.

This is equivalent to calling NavPages.of(context).pop(). Does nothing if there are no pages to pop.

Example:

NavPages.pop(context);

Implementation

static void pop(BuildContext context) {
  of(context).pop();
}