WxAnchor.circle constructor

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

Creates a circle shaped area that responds to touch.

Implementation

WxAnchor.circle({
  super.key,
  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,
  double? overlayRadius,
  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 = const CircleBorder(),
      overlayExtent =
          overlayRadius != null ? Size.fromRadius(overlayRadius) : null;