Polygon constructor
Polygon({})
Implementation
Polygon({
required this.points,
required this.onTap,
this.holePointsList,
this.color = const Color(0xFF00FF00),
this.borderStrokeWidth = 0.0,
this.borderColor = const Color(0xFFFFFF00),
this.disableHolesBorder = false,
this.isDotted = false,
}) : holeOffsetsList = null == holePointsList || holePointsList.isEmpty
? null
: List.generate(holePointsList.length, (_) => []);