IconButton.destructive constructor

const IconButton.destructive({
  1. required Widget icon,
  2. void onPressed()?,
  3. ButtonSize size = ButtonSize.icon,
  4. bool disabled = false,
  5. bool loading = false,
  6. String? href,
  7. Key? key,
})

Implementation

const IconButton.destructive({
  required this.icon,
  this.onPressed,
  this.size = ButtonSize.icon,
  this.disabled = false,
  this.loading = false,
  this.href,
  super.key,
}) : variant = ButtonVariant.destructive;