FreeHexWidget constructor

const FreeHexWidget({
  1. required String id,
  2. required FreeHexagon hexagon,
  3. required Widget child,
  4. bool clipToHexShape = false,
  5. Color? backgroundColor,
  6. Color? borderColor,
  7. double borderWidth = 1.0,
  8. bool draggable = false,
  9. VoidCallback? onTap,
  10. VoidCallback? onLongPress,
  11. VoidCallback? onDragStarted,
  12. dynamic onDragEnd(
    1. Offset newCenter
    )?,
})

Implementation

const FreeHexWidget({
  required this.id,
  required this.hexagon,
  required this.child,
  this.clipToHexShape = false,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth = 1.0,
  this.draggable = false,
  this.onTap,
  this.onLongPress,
  this.onDragStarted,
  this.onDragEnd,
});