DotPattern.grid constructor

DotPattern.grid({
  1. double radius = 2,
  2. double spacing = 10,
  3. Color backgroundColor = const Color(0x00000000),
  4. Color foregroundColor = const Color(0xFF000000),
})

Creates a regular grid dot pattern.

Implementation

factory DotPattern.grid({
  double radius = 2,
  double spacing = 10,
  Color backgroundColor = const Color(0x00000000),
  Color foregroundColor = const Color(0xFF000000),
}) {
  return DotPattern(
    radius: radius,
    spacingX: spacing,
    spacingY: spacing,
    staggered: false,
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
  );
}