pop method

dynamic pop({
  1. dynamic result,
})

Pop the current widget from the stack.

Implementation

pop({dynamic result}) {
  Navigator.of(context).pop(result);
}