CButton constructor

CButton(
  1. dynamic onPressed(),
  2. String text, {
  3. Key? key,
  4. ButtonType? type = ButtonType.noIcon,
  5. ButtonShape? typeButton = ButtonShape.filled,
  6. dynamic onLongPress()?,
  7. Widget? icon,
  8. FocusNode? focusNode,
  9. ButtonStyle? buttonStyle,
  10. Widget? child,
  11. Color? textColor,
  12. TextAlign? textAlign,
  13. double? fontSize,
  14. String? fontFamily,
  15. FontWeight? fontWeight,
  16. TextStyle? textStyle,
})

Implementation

CButton(this.onPressed,
    this.text, {
      super.key,
      this.type = ButtonType.noIcon,
      this.typeButton = ButtonShape.filled,
      this.onLongPress,
      this.icon,
      this.focusNode,
      this.buttonStyle,
      this.child,
      this.textColor,
      this.textAlign,
      this.fontSize,
      this.fontFamily,
      this.fontWeight,
      this.textStyle,
    });