ZwapButton.customChild constructor

const ZwapButton.customChild({
  1. required Widget child(
    1. ZwapButtonStatusDescription
    ),
  2. ZwapButtonDecorations? decorations,
  3. FocusNode? focusNode,
  4. double? height = 44,
  5. double? width = 116,
  6. bool hide = false,
  7. bool disabled = false,
  8. EdgeInsets? margin,
  9. dynamic onHover(
    1. bool
    )?,
  10. dynamic onLongTap()?,
  11. dynamic onTap()?,
  12. Map<Type, Action<Intent>>? actions,
  13. Map<ShortcutActivator, Intent>? shortcuts,
  14. bool loading = false,
  15. bool isSelected = false,
  16. ZwapButtonDecorations? selectedDecorations,
  17. double hoverElevation = 0,
  18. double completionValue = 1,
  19. String? tooltip,
  20. bool showTooltipOnlyOnDisabledState = false,
  21. ZwapButtonOptions? rightOptions,
  22. 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);