pop method

dynamic pop({
  1. dynamic result,
})

Pop the current widget from the stack.

Implementation

pop({dynamic result}) {
  if (!mounted) return;
  Navigator.of(context).pop(result);
}