pop method

void pop({
  1. dynamic result,
})

Implementation

void pop({dynamic result}) async {
  if (canPop()) {
    return Navigator.of(this).pop(result);
  }
  throw CustomException('Navigate Can Not Pop');
}