DashedPainter constructor
DashedPainter({
- double strokeWidth = 2,
- List<
double> dashPattern = const <double>[3, 1], - Color color = Colors.black,
- Gradient? gradient,
- 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.gradient,
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');
}