KButton constructor

const KButton({
  1. Key? key,
  2. required Widget child,
  3. Widget? icon,
  4. Widget? suffixIcon,
  5. dynamic onPressed()?,
  6. KButtonType type = KButtonType.regular,
  7. ControlSize size = ControlSize.regular,
  8. bool error = false,
  9. bool warning = false,
  10. bool success = false,
  11. bool disabled = false,
  12. bool loading = false,
})

Implementation

const KButton(
    {super.key,
    required this.child,
    this.icon,
    this.suffixIcon,
    this.onPressed,
    this.type = KButtonType.regular,
    this.size = ControlSize.regular,
    this.error = false,
    this.warning = false,
    this.success = false,
    this.disabled = false,
    this.loading = false});