CButton constructor
CButton({
- Key? key,
- required String label,
- required VoidCallback onTap,
- double labelSize = 14,
- bool enable = true,
- bool expand = false,
- CButtonKind kind = CButtonKind.primary,
- CButtonSize size = CButtonSize.regular,
- Widget? icon,
Implementation
CButton({
Key? key,
required String label,
required VoidCallback onTap,
double labelSize = 14,
bool enable = true,
bool expand = false,
CButtonKind kind = CButtonKind.primary,
CButtonSize size = CButtonSize.regular,
Widget? icon,
}) : type = CButtonType.regular,
props = CButtonRegularProps(
icon: icon,
expand: expand,
label: label,
labelSize: labelSize,
enable: enable,
kind: kind,
size: size,
onTap: onTap,
),
super(key: key);