pop method

void pop({
  1. dynamic result,
  2. bool rootNavigator = false,
})

Pop the current widget from the stack.

Implementation

void pop({dynamic result, bool rootNavigator = false}) {
  if (!mounted) return;
  Navigator.of(context, rootNavigator: rootNavigator).pop(result);
}