ArcaneIconButton.destructive constructor

const ArcaneIconButton.destructive({
  1. required Component icon,
  2. void onPressed()?,
  3. IconButtonSize size = IconButtonSize.medium,
  4. bool disabled = false,
  5. bool loading = false,
  6. String? tooltip,
  7. Key? key,
})

Destructive icon button

Implementation

const ArcaneIconButton.destructive({
  required this.icon,
  this.onPressed,
  this.size = IconButtonSize.medium,
  this.disabled = false,
  this.loading = false,
  this.tooltip,
  super.key,
})  : style = IconButtonStyle.destructive,
      variant = null;