DashedBorderPainter constructor

DashedBorderPainter({
  1. required Color color,
  2. required Set<Side> sides,
  3. double dashGap = 3.0,
  4. double dashSpace = 3.0,
  5. BorderRadius borderRadius = BorderRadius.zero,
})

Implementation

DashedBorderPainter({
  required Color color,
  required this.sides,
  this.dashGap = 3.0,
  this.dashSpace = 3.0,
  this.borderRadius = BorderRadius.zero,
}) : _paint = Paint()
       ..color = color
       ..strokeWidth = 1.0
       ..style = PaintingStyle.stroke;