GridBackgroundParams constructor
GridBackgroundParams({})
gridSquare
is the raw size of the grid square when scale is 1
Implementation
GridBackgroundParams({
double gridSquare = 20.0,
this.gridThickness = 0.7,
this.secondarySquareStep = 5,
this.backgroundColor = Colors.white,
this.gridColor = Colors.black12,
void Function(double scale)? onScaleUpdate,
}) : rawGridSquareSize = gridSquare {
if (onScaleUpdate != null) {
_onScaleUpdateListeners.add(onScaleUpdate);
}
}