finish function
for pop from anywhere in app
Implementation
void finish(BuildContext context, [Object? result]) {
if (Navigator.canPop(context)) Navigator.pop(context, result);
}
for pop from anywhere in app
void finish(BuildContext context, [Object? result]) {
if (Navigator.canPop(context)) Navigator.pop(context, result);
}