setGridCellSize method
- double value
Sets the grid cell size in scene units.
Implementation
void setGridCellSize(double value) {
if (!value.isFinite || value <= 0) {
throw ArgumentError.value(
value,
'value',
'Grid cell size must be a finite number > 0.',
);
}
if (scene.background.grid.cellSize == value) return;
scene.background.grid.cellSize = value;
_contracts.markSceneGeometryChanged();
_contracts.notifyNow();
}