XButton constructor
const
XButton({
- Key? key,
- required Function onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - String? label,
- double radius = 5,
- XButtonStyle? style,
- ButtonStyle? elevatedButtonStyle,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip? clipBehavior,
- WidgetStatesController? statesController,
- TextStyle? textStyle,
- bool isLoading = false,
- bool isLoadingInside = false,
- bool isEnable = true,
- bool? isForceTap = false,
- Widget? child,
- double? width,
- double? height,
- 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,
});