BoundsTestPainter constructor

BoundsTestPainter({
  1. Listenable? repaint,
  2. required BoundsList boundsData,
  3. Color color = const Color(0x3300FF00),
  4. Color? visibleBoundsColor,
  5. Color? boundsColor,
})

Creates a BoundsTestPainter.

boundsData is a map of region labels to their corresponding Paths. color sets the fill or stroke color for the regions.

Implementation

BoundsTestPainter({
  super.repaint,
  required this.boundsData,
  this.color = const Color(0x3300FF00),
  Color? visibleBoundsColor,
  Color? boundsColor,
})  : visibleBoundsColor = visibleBoundsColor ?? color,
      boundsColor = boundsColor ?? color;