build method
构建网格并自动分配 widgets
Implementation
HexagonalGrid build({
Function(HexCoordinate)? onCellTap,
Function(HexCoordinate)? onCellLongPress,
Function(HexCoordinate?)? onCellHover,
}) {
final hexWidgets = _autoLayoutWidgets();
return HexagonalGrid(
config: config,
widgets: hexWidgets,
onCellTap: onCellTap,
onCellLongPress: onCellLongPress,
onCellHover: onCellHover,
);
}