GridBackgroundParams constructor

GridBackgroundParams({
  1. double gridSquare = 20.0,
  2. double gridThickness = 0.7,
  3. int secondarySquareStep = 5,
  4. Color backgroundColor = Colors.white,
  5. Color gridColor = Colors.black12,
  6. void onScaleUpdate(
    1. double scale
    )?,
})

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);
  }
}