MacosAlertDialog constructor

const MacosAlertDialog({
  1. Key? key,
  2. Widget? appIcon,
  3. required Widget title,
  4. required Widget message,
  5. Widget? primaryButton,
  6. Color? backgroundColor,
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0),
  8. Widget? secondaryButton,
  9. bool? horizontalActions = true,
  10. Widget? suppress,
  11. BoxConstraints? constraints,
})

Builds a macOS-style Alert Dialog

Implementation

const MacosAlertDialog({
  Key? key,
  this.appIcon,
  required this.title,
  required this.message,
  this.primaryButton,
  this.backgroundColor,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0),
  this.secondaryButton,
  this.horizontalActions = true,
  this.suppress,
  this.constraints,
}) : super(key: key);