pop function
Implementation
void pop(BuildContext context) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
if (!canPop(context)) {
throw "Route cannot be pop";
}
return Navigator.of(context).pop();
}
void pop(BuildContext context) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
if (!canPop(context)) {
throw "Route cannot be pop";
}
return Navigator.of(context).pop();
}