getOnConfirmPress method

dynamic Function() getOnConfirmPress(
  1. BuildContext context
)

getOnConfirmPress Get On Confirm Press or Default action

Implementation

Function() getOnConfirmPress(BuildContext context) => () {
      Function() confirm = onConfirmPressed ?? () => {};

      confirm();
      dismissDialog(context);
    };