DotPattern constructor

const DotPattern({
  1. double radius = 2,
  2. double spacingX = 10,
  3. double spacingY = 10,
  4. bool staggered = false,
  5. Color backgroundColor = const Color(0x00000000),
  6. Color foregroundColor = const Color(0xFF000000),
})

Creates a dot pattern.

Implementation

const DotPattern({
  this.radius = 2,
  this.spacingX = 10,
  this.spacingY = 10,
  this.staggered = false,
  super.backgroundColor,
  super.foregroundColor,
}) : super(
        width: spacingX,
        height: staggered ? spacingY * 2 : spacingY,
      );