FlDotSquarePainter constructor

FlDotSquarePainter({
  1. Color color = Colors.green,
  2. double size = 4.0,
  3. Color strokeColor = const Color.fromRGBO(76, 175, 80, 1),
  4. double strokeWidth = 1.0,
})

The color of the square is determined determined by color, size determines the size of the square. You can have a stroke line around the square, by setting the thickness with strokeWidth, and you can change the color of of the stroke with strokeColor.

Implementation

FlDotSquarePainter({
  this.color = Colors.green,
  this.size = 4.0,
  this.strokeColor = const Color.fromRGBO(76, 175, 80, 1),
  this.strokeWidth = 1.0,
});