ZwapButton.customChild constructor
const
ZwapButton.customChild({
- required Widget child(),
- ZwapButtonDecorations? decorations,
- FocusNode? focusNode,
- double? height = 44,
- double? width = 116,
- bool hide = false,
- bool disabled = false,
- EdgeInsets? margin,
- dynamic onHover()?,
- dynamic onLongTap()?,
- dynamic onTap()?,
- Map<
Type, Action< ? actions,Intent> > - Map<
ShortcutActivator, Intent> ? shortcuts, - bool loading = false,
- bool isSelected = false,
- ZwapButtonDecorations? selectedDecorations,
- double hoverElevation = 0,
- double completionValue = 1,
- String? tooltip,
- bool showTooltipOnlyOnDisabledState = false,
- ZwapButtonOptions? rightOptions,
- Key? key,
Implementation
const ZwapButton.customChild({
required Widget Function(ZwapButtonStatusDescription) child,
this.decorations,
this.focusNode,
this.height = 44,
this.width = 116,
this.hide = false,
this.disabled = false,
this.margin,
this.onHover,
this.onLongTap,
this.onTap,
this.actions,
this.shortcuts,
this.loading = false,
this.isSelected = false,
this.selectedDecorations,
this.hoverElevation = 0,
this.completionValue = 1,
this.tooltip,
this.showTooltipOnlyOnDisabledState = false,
this.rightOptions,
Key? key,
}) : this.buttonChild = null,
this.child = child,
assert(completionValue >= 0 && completionValue <= 1),
super(key: key);