XButton constructor
XButton({
- String? text,
- TextStyle? style,
- Widget? child,
- XButtonType? type,
- double? width,
- double? height,
- Function? paramsFn,
- double? borderSize,
- String? borderColor,
- double? radius,
- double? vertical,
- double? horizontal,
- bool? disabled = false,
- Map? params,
- Function? api,
- required Function? callback,
- 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;
}