CrossHatchPattern constructor

const CrossHatchPattern({
  1. double strokeWidth = 1,
  2. double spacing = 8,
  3. double angle1 = 0.7853981633974483,
  4. double angle2 = -0.7853981633974483,
  5. Color backgroundColor = const Color(0x00000000),
  6. Color foregroundColor = const Color(0xFF000000),
})

Creates a cross-hatch pattern.

Implementation

const CrossHatchPattern({
  this.strokeWidth = 1,
  this.spacing = 8,
  this.angle1 = 0.7853981633974483, // 45 degrees
  this.angle2 = -0.7853981633974483, // -45 degrees
  super.backgroundColor,
  super.foregroundColor,
}) : super(
        width: spacing + strokeWidth,
        height: spacing + strokeWidth,
      );