cupertinoYesOrNo method

List<Widget> cupertinoYesOrNo(
  1. BuildContext context
)

cupertinoYesOrNo Show yes or no alert for IOS

Implementation

List<Widget> cupertinoYesOrNo(BuildContext context) => [
      CupertinoDialogAction(
        child: Text(
          _smartAlertDialog.getText().cancel,
          textAlign: TextAlign.center,
          style: _smartAlertDialog.getStyle().cancel,
        ),
        onPressed: _smartAlertDialog.getOnCancelPress(context),
      ),
      CupertinoDialogAction(
        child: Text(
          _smartAlertDialog.getText().confirm,
          textAlign: TextAlign.center,
          style: _smartAlertDialog.getStyle().confirm,
        ),
        onPressed: _smartAlertDialog.getOnConfirmPress(context),
      ),
    ];