EnhancedFreeHexWidget constructor

const EnhancedFreeHexWidget({
  1. required String id,
  2. required FreeHexagon hexagon,
  3. HexFillStyle? fillStyle,
  4. HexBorderStyle borderStyle = const HexBorderStyle(),
  5. Widget? child,
  6. bool clipContent = true,
  7. VoidCallback? onTap,
  8. VoidCallback? onLongPress,
  9. VoidCallback? onDoubleTap,
  10. dynamic onHover(
    1. bool isHovering
    )?,
  11. HexClickAnimation clickAnimation = HexClickAnimation.scale,
  12. Duration animationDuration = const Duration(milliseconds: 200),
  13. bool draggable = false,
  14. dynamic onDragEnd(
    1. Offset newCenter
    )?,
  15. List<BoxShadow>? shadows,
  16. double opacity = 1.0,
  17. 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 {},
});