Checkers constructor

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

Paints a Pattern made of 10 squares across the largest side with alternating colors.

Example:

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

Implementation

const Checkers(
    {required this.bgColor,
    required this.fgColor,
    this.featuresCount = Pattern.DEFAULT_SQUARES_COUNT})
    : super(
          patternType: PatternType.checkers,
          bgColor: bgColor,
          fgColor: fgColor);