CheckerPattern constructor

const CheckerPattern({
  1. double squareSize = 10,
  2. Color backgroundColor = const Color(0x00000000),
  3. Color foregroundColor = const Color(0xFF000000),
  4. Color secondaryColor = const Color(0xFFFFFFFF),
})

Creates a checker pattern.

Implementation

const CheckerPattern({
  this.squareSize = 10,
  super.backgroundColor,
  super.foregroundColor,
  this.secondaryColor = const Color(0xFFFFFFFF),
}) : super(
        width: squareSize * 2,
        height: squareSize * 2,
      );