CButton.icon constructor

CButton.icon({
  1. Key? key,
  2. bool enable = true,
  3. required Widget icon,
  4. required VoidCallback onTap,
  5. CButtonKind kind = CButtonKind.primary,
  6. 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);