GlassConfirmationDialogAction constructor

const GlassConfirmationDialogAction({
  1. required String label,
  2. required VoidCallback? onPressed,
  3. Widget? icon,
  4. bool isDestructive = false,
  5. bool isPrimary = false,
  6. Color? tintColor,
  7. Color? foregroundColor,
  8. bool dismissOnPress = true,
})

Creates a confirmation dialog action.

Implementation

const GlassConfirmationDialogAction({
  required this.label,
  required this.onPressed,
  this.icon,
  this.isDestructive = false,
  this.isPrimary = false,
  this.tintColor,
  this.foregroundColor,
  this.dismissOnPress = true,
});