IconButton constructor

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

Implementation

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