IconButton constructor
const
IconButton({
- required Widget icon,
- void onPressed()?,
- ButtonVariant variant = ButtonVariant.ghost,
- ButtonSize size = ButtonSize.icon,
- bool disabled = false,
- bool loading = false,
- String? href,
- 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,
});