empty property

AutonomyGrid get empty

An empty grid of size gridSize.

Implementation

AutonomyGrid get empty => [
    for (int y = 0; y < gridSize; y++) [
      for (int x = 0; x < gridSize; x++) (
        coordinates: UTMCoordinates(
          x: x.toDouble() * precisionMeters + centerPosition.x,
          y: y.toDouble() * precisionMeters + centerPosition.y,
          zoneNumber: centerPosition.zoneNumber,
          isSouthernHemisphere: centerPosition.isSouthernHemisphere,
        ).toGps(),
        cellType: AutonomyCell.empty
      ),
    ],
  ];