checkIsCurrent static method
dynamic
checkIsCurrent(
- dynamic context,
- dynamic back, {
- dynamic noBack,
Implementation
static checkIsCurrent(context, back, {noBack}) async {
return await Future(() {
try {
if (isReception && ModalRoute.of(context)?.isCurrent == true) {
return back();
} else {
return noBack?.call();
}
} catch (e) {
AppConfig.printLog(e);
}
});
}