ZwapButton constructor

const ZwapButton({
  1. required ZwapButtonChild buttonChild,
  2. ZwapButtonDecorations? decorations,
  3. FocusNode? focusNode,
  4. double? height,
  5. double? width,
  6. bool hide = false,
  7. bool disabled = false,
  8. dynamic onHover(
    1. bool
    )?,
  9. EdgeInsets? margin,
  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({
  required ZwapButtonChild buttonChild,
  this.decorations,
  this.focusNode,
  this.height,
  this.width,
  this.hide = false,
  this.disabled = false,
  this.onHover,
  this.margin,
  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.child = null,
      this.buttonChild = buttonChild,
      assert(completionValue >= 0 && completionValue <= 1),
      super(key: key);