Dots constructor

const Dots({
  1. required Color bgColor,
  2. required Color fgColor,
  3. int featuresCount = Pattern.DEFAULT_DOTS_COUNT,
})

Paints a Pattern made of 10 circles (dots) inside bigger squares across the object's larger side with the foreground color as the circle's color.

Example:

Dots(bgColor: Colors.yellow, fgColor: Colors.black).paintOnPath(canvas, size, path);

Implementation

const Dots(
    {required this.bgColor,
    required this.fgColor,
    this.featuresCount = Pattern.DEFAULT_DOTS_COUNT})
    : super(
          patternType: PatternType.dots, bgColor: bgColor, fgColor: fgColor);