DashPainter constructor
DashPainter({
- 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,
Implementation
DashPainter({
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,
}) {
assert(dashPattern.isNotEmpty, 'Dash Pattern cannot be empty');
}