showActionDialog static method

Future<bool?> showActionDialog(
  1. BuildContext context, {
  2. String? title,
  3. String? subTitle,
  4. required String yesText,
  5. Color? yesColor,
  6. String? cancelText,
  7. Color? cancelColor,
  8. String? noText,
  9. Color? noColor,
  10. IconData? icon,
  11. Color? iconColor,
})

Implementation

static Future<bool?> showActionDialog(BuildContext context,
    {String? title,
    String? subTitle,
    required String yesText,
    Color? yesColor,
    String? cancelText,
    Color? cancelColor,
    String? noText,
    Color? noColor,
    IconData? icon,
    Color? iconColor}) {
  return showCustomDialog<bool?>(
      context,
      GeneralDialog(
        title: title,
        subTitle: subTitle,
        yesAction: yesText,
        yesColor: yesColor,
        noAction: noText,
        noColor: noColor,
        cancelAction: cancelText,
        cancelColor: cancelColor,
        icon: icon == null
            ? null
            : Icon(
                icon,
                size: 70,
                color: iconColor ?? Theme.of(context).primaryColor,
              ),
      ));
}