IconButton constructor
IconButton({
- Key? key,
- required Widget icon,
- ButtonSize size = ButtonSize.l,
- VoidCallback? onClick,
- bool enabled = true,
- ButtonColorType colorType = ButtonColorType.primary,
Implementation
IconButton({
super.key,
required Widget icon,
this.size = ButtonSize.l,
this.onClick,
this.enabled = true,
this.colorType = ButtonColorType.primary,
}) : content = IconOnlyContent(icon);