FreeHexWidget constructor
const
FreeHexWidget({
- required String id,
- required FreeHexagon hexagon,
- required Widget child,
- bool clipToHexShape = false,
- Color? backgroundColor,
- Color? borderColor,
- double borderWidth = 1.0,
- bool draggable = false,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onDragStarted,
- dynamic onDragEnd(
- 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,
});