DashedPainter constructor
      
      DashedPainter({ 
    
    
- double strokeWidth = 2,
- List<double> dashPattern = const <double>[3, 1],
- Color color = Colors.black,
- BorderType borderType = BorderType.Rect,
- Radius radius = const Radius.circular(0),
- StrokeCap strokeCap = StrokeCap.butt,
- PathBuilder? customPath,
- EdgeInsets padding = EdgeInsets.zero,
Implementation
DashedPainter({
  this.strokeWidth = 2,
  this.dashPattern = const <double>[3, 1],
  this.color = Colors.black,
  this.borderType = BorderType.Rect,
  this.radius = const Radius.circular(0),
  this.strokeCap = StrokeCap.butt,
  this.customPath,
  this.padding = EdgeInsets.zero,
}) {
  assert(dashPattern.isNotEmpty, 'Dash Pattern cannot be empty');
}