XButton constructor

const XButton({
  1. Key? key,
  2. required Function onPressed,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHover,
  5. ValueChanged<bool>? onFocusChange,
  6. String? label,
  7. double radius = 5,
  8. XButtonStyle? style,
  9. ButtonStyle? elevatedButtonStyle,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. Clip? clipBehavior,
  13. WidgetStatesController? statesController,
  14. TextStyle? textStyle,
  15. bool isLoading = false,
  16. bool isLoadingInside = false,
  17. bool isEnable = true,
  18. bool? isForceTap = false,
  19. Widget? child,
  20. double? width,
  21. double? height,
  22. bool widthInfinity = false,
})

Implementation

const XButton({
  super.key,
  required this.onPressed,
  this.onLongPress,
  this.onHover,
  this.onFocusChange,
  this.label,
  this.radius = 5,
  this.style,
  this.elevatedButtonStyle,
  this.focusNode,
  this.autofocus = false,
  this.clipBehavior,
  this.statesController,
  this.textStyle,
  this.isLoading = false,
  this.isLoadingInside = false,
  this.isEnable = true,
  this.isForceTap = false,
  this.child,
  this.width,
  this.height,
  this.widthInfinity = false,
});