LinePattern constructor

const LinePattern({
  1. double strokeWidth = 2,
  2. double spacing = 8,
  3. double angle = 0,
  4. Color backgroundColor = const Color(0x00000000),
  5. Color foregroundColor = const Color(0xFF000000),
})

Creates a line pattern.

Implementation

const LinePattern({
  this.strokeWidth = 2,
  this.spacing = 8,
  this.angle = 0,
  super.backgroundColor,
  super.foregroundColor,
}) : super(
        width: spacing + strokeWidth,
        height: spacing + strokeWidth,
      );