buildWithManualLayout method

HexagonalGrid buildWithManualLayout({
  1. required List<HexWidget> widgets,
  2. dynamic onCellTap(
    1. HexCoordinate
    )?,
  3. dynamic onCellLongPress(
    1. HexCoordinate
    )?,
  4. dynamic onCellHover(
    1. HexCoordinate?
    )?,
})

手动指定 widgets 的位置和尺寸

Implementation

HexagonalGrid buildWithManualLayout({
  required List<HexWidget> widgets,
  Function(HexCoordinate)? onCellTap,
  Function(HexCoordinate)? onCellLongPress,
  Function(HexCoordinate?)? onCellHover,
}) {
  return HexagonalGrid(
    config: config,
    widgets: widgets,
    onCellTap: onCellTap,
    onCellLongPress: onCellLongPress,
    onCellHover: onCellHover,
  );
}