GridPainter constructor

GridPainter({
  1. double lineWidth = 1.0,
  2. Color lineColor = Colors.black,
  3. double horizontalGap = 32.0,
  4. double verticalGap = 32.0,
  5. Offset offset = Offset.zero,
  6. double scale = 1.0,
  7. bool showHorizontal = true,
  8. bool showVertical = true,
  9. double lineLength = 1e4,
  10. bool isAntiAlias = true,
  11. bool matchParentSize = true,
})

Paints a grid.

Useful if added as canvas background widget.

Implementation

GridPainter({
  this.lineWidth = 1.0,
  this.lineColor = Colors.black,
  this.horizontalGap = 32.0,
  this.verticalGap = 32.0,
  this.offset = Offset.zero,
  this.scale = 1.0,
  this.showHorizontal = true,
  this.showVertical = true,
  this.lineLength = 1e4,
  this.isAntiAlias = true,
  this.matchParentSize = true,
});