XButton constructor

XButton({
  1. String? text,
  2. TextStyle? style,
  3. Widget? child,
  4. XButtonType? type,
  5. double? width,
  6. double? height,
  7. Function? paramsFn,
  8. double? borderSize,
  9. String? borderColor,
  10. double? radius,
  11. double? vertical,
  12. double? horizontal,
  13. bool? disabled = false,
  14. Map? params,
  15. Function? api,
  16. required Function? callback,
  17. Color? color,
})

Implementation

XButton({
  this.text,
  this.style,
  this.child,
  this.type,
  this.width,
  this.height,
  this.paramsFn,
  this.borderSize,
  this.borderColor,
  this.radius,
  this.vertical,
  this.horizontal,
  this.disabled = false,
  this.params,
  this.api,
  required this.callback,
  this.color,
}) {
  type = type ?? XButtonType.btn;
}