XButton constructor

XButton({
  1. Widget? child,
  2. bool? disabled = false,
  3. required Function callback,
  4. Color? color,
})

Implementation

XButton({
  this.child,
  this.disabled = false,
  required this.callback,
  this.color,
}) {
  type = type ?? XButtonType.btn;
}