DiagonalStripesThick constructor

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

Paints a Pattern made of 15 thick diagonal stripes across the largest side with the foreground color as the stripe color.

Example:

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

Implementation

const DiagonalStripesThick(
    {required this.bgColor,
    required this.fgColor,
    this.featuresCount = Pattern.DEFAULT_DIAGONAL_STRIPES_COUNT})
    : super(
          patternType: PatternType.diagonalThick,
          bgColor: bgColor,
          fgColor: fgColor);