HorizontalStripesLight constructor

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

Paints a Pattern made of 10 thin horizontal stripes across the object's height with the foreground color as the stripe color.

Example:

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

Implementation

const HorizontalStripesLight(
    {required this.bgColor,
    required this.fgColor,
    this.featuresCount = Pattern.DEFAULT_STRIPES_COUNT})
    : super(
          patternType: PatternType.horizontalLight,
          bgColor: bgColor,
          fgColor: fgColor);