EnhancedFreeHexWidget constructor
const
EnhancedFreeHexWidget({
- required String id,
- required FreeHexagon hexagon,
- HexFillStyle? fillStyle,
- HexBorderStyle borderStyle = const HexBorderStyle(),
- Widget? child,
- bool clipContent = true,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onDoubleTap,
- dynamic onHover(
- bool isHovering
- HexClickAnimation clickAnimation = HexClickAnimation.scale,
- Duration animationDuration = const Duration(milliseconds: 200),
- bool draggable = false,
- dynamic onDragEnd(
- Offset newCenter
- List<
BoxShadow> ? shadows, - double opacity = 1.0,
- Map<
String, dynamic> data = const {},
Implementation
const EnhancedFreeHexWidget({
required this.id,
required this.hexagon,
this.fillStyle,
this.borderStyle = const HexBorderStyle(),
this.child,
this.clipContent = true,
this.onTap,
this.onLongPress,
this.onDoubleTap,
this.onHover,
this.clickAnimation = HexClickAnimation.scale,
this.animationDuration = const Duration(milliseconds: 200),
this.draggable = false,
this.onDragEnd,
this.shadows,
this.opacity = 1.0,
this.data = const {},
});