LinkButton constructor
LinkButton({
- Key? key,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- WidgetStatesController? statesController,
- bool busy = false,
- Color? busyColor,
- Duration? loadingDebounce,
- bool disabled = false,
- Color? color,
- double minWidth = 74,
- double height = 56,
- bool withInk = true,
- required Widget child,
Implementation
LinkButton({
super.key,
required VoidCallback? onPressed,
VoidCallback? onLongPress,
ValueChanged<bool>? onHover,
ValueChanged<bool>? onFocusChange,
ButtonStyle? style,
FocusNode? focusNode,
bool autofocus = false,
Clip clipBehavior = Clip.none,
WidgetStatesController? statesController,
this.busy = false,
this.busyColor,
this.loadingDebounce,
this.disabled = false,
this.color,
this.minWidth = 74,
this.height = 56,
this.withInk = true,
required Widget child,
}) : super(
onPressed: (disabled || busy) ? null : onPressed,
onLongPress: (disabled || busy) ? null : onLongPress,
onHover: onHover,
onFocusChange: onFocusChange,
style: _resolveStyle(
style: style,
color: color,
minWidth: minWidth,
height: height,
withInk: withInk,
),
focusNode: focusNode,
autofocus: autofocus,
clipBehavior: clipBehavior,
statesController: statesController,
child: GBButtonChild(
busy: busy,
busyColor: busyColor ?? color,
loadingDebounce: loadingDebounce,
child: child,
),
);