IconicaAlertDialog.singleButton constructor
Implementation
factory IconicaAlertDialog.singleButton({
required String title,
required String body,
required String buttonText,
required VoidCallback onPressed,
bool primary = false,
bool? closeButton,
ButtonCallback? primaryButton,
ButtonCallback? secondaryButton,
IconButtonCallback? iconButton,
}) =>
IconicaAlertDialog.multiButton(
primaryButton: primaryButton,
secondaryButton: secondaryButton,
iconButton: iconButton,
closeButton: closeButton,
title: title,
body: body,
buttons: [
AlertDialogAction(
text: buttonText,
onPressed: onPressed,
primary: primary,
),
],
);