DashPainter constructor

DashPainter({
  1. double strokeWidth = 2,
  2. List<double> dashPattern = const <double>[3, 1],
  3. Color color = Colors.black,
  4. BorderType borderType = BorderType.Rect,
  5. Radius radius = const Radius.circular(0),
  6. StrokeCap strokeCap = StrokeCap.butt,
  7. 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');
}