GridPatternPainter constructor
const
GridPatternPainter({})
Creates a grid pattern painter.
spacing is the spacing between grid lines in logical pixels.
lineThickness is the thickness of grid lines in logical pixels.
color is the color of the grid lines.
repeatPattern is whether the pattern should repeat across the canvas.
patternOffset is the offset from the top-left corner where the pattern starts.
Implementation
const GridPatternPainter({
required this.spacing,
required this.lineThickness,
required this.color,
this.repeatPattern = true,
this.patternOffset = const Offset(0, 0),
}) : elementSize = lineThickness;