CButton.icon constructor
CButton.icon({
- Key? key,
- bool enable = true,
- required Widget icon,
- required VoidCallback onTap,
- CButtonKind kind = CButtonKind.primary,
- CButtonSize size = CButtonSize.regular,
Implementation
CButton.icon({
Key? key,
bool enable = true,
required Widget icon,
required VoidCallback onTap,
CButtonKind kind = CButtonKind.primary,
CButtonSize size = CButtonSize.regular,
}) : type = CButtonType.icon,
props = CButtonIconOnlyProps(
enable: enable,
icon: icon,
onTap: onTap,
kind: kind,
size: size,
),
super(key: key);