getOnConfirmPress method
getOnConfirmPress Get On Confirm Press or Default action
Implementation
Function() getOnConfirmPress(BuildContext context) => () {
Function() confirm = onConfirmPressed ?? () => {};
confirm();
dismissDialog(context);
};