WxAnchor constructor

WxAnchor({
  1. Key? key,
  2. BorderRadius borderRadius = BorderRadius.zero,
  3. Curve? curve,
  4. Duration? duration,
  5. VoidCallback? onTap,
  6. GestureTapUpCallback? onTapUp,
  7. GestureTapDownCallback? onTapDown,
  8. VoidCallback? onTapCancel,
  9. VoidCallback? onDoubleTap,
  10. VoidCallback? onLongPress,
  11. ValueChanged<bool>? onHover,
  12. ValueChanged<bool>? onFocus,
  13. double? scale,
  14. double? opacity,
  15. bool? overlay,
  16. Color? overlayColor,
  17. double? overlayOpacity,
  18. Size? overlayExtent,
  19. Color? textColor,
  20. TextStyle? textStyle,
  21. TextAlign? textAlign,
  22. Color? iconColor,
  23. double? iconOpacity,
  24. double? iconSize,
  25. MouseCursor? mouseCursor,
  26. EdgeInsetsGeometry? padding,
  27. EdgeInsetsGeometry? margin,
  28. WxAnchorStyle? style,
  29. WxAnchorStyle? focusedStyle,
  30. WxAnchorStyle? hoveredStyle,
  31. WxAnchorStyle? pressedStyle,
  32. WxAnchorStyle? disabledStyle,
  33. WidgetEventController? eventsController,
  34. FocusNode? focusNode,
  35. bool autofocus = false,
  36. bool? focusable,
  37. bool? feedback,
  38. bool? disabled,
  39. Widget? child,
})

Creates a rectangle shape area that responds to touch.

Implementation

WxAnchor({
  super.key,
  BorderRadius borderRadius = BorderRadius.zero,
  this.curve,
  this.duration,
  this.onTap,
  this.onTapUp,
  this.onTapDown,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onHover,
  this.onFocus,
  this.scale,
  this.opacity,
  this.overlay,
  this.overlayColor,
  this.overlayOpacity,
  this.overlayExtent,
  this.textColor,
  this.textStyle,
  this.textAlign,
  this.iconColor,
  this.iconOpacity,
  this.iconSize,
  this.mouseCursor,
  this.padding,
  this.margin,
  this.style,
  this.focusedStyle,
  this.hoveredStyle,
  this.pressedStyle,
  this.disabledStyle,
  this.eventsController,
  this.focusNode,
  this.autofocus = false,
  this.focusable,
  this.feedback,
  this.disabled,
  this.child,
}) : overlayShape = RoundedRectangleBorder(borderRadius: borderRadius);