exitForm method
Implementation
Future<bool> exitForm(context) async {
GNDialogs.showDialog(
title: dialogTitle ?? StringConst.ALERT,
message: dialogMessage ?? StringConst.EXIT_FORM_MESSAGE,
yes: StringConst.YES,
no: StringConst.NO,
callback: (isBack) {
if (isBack) {
Get.back(canPop: true, closeOverlays: true);
return true;
}
},
);
return false;
}