HcDashPainter constructor

HcDashPainter({
  1. double strokeWidth = 2,
  2. List<double> dashPattern = const <double>[3, 1],
  3. Color color = Colors.black,
  4. HcBorderType borderType = HcBorderType.rect,
  5. Radius radius = const Radius.circular(0),
  6. StrokeCap strokeCap = StrokeCap.butt,
  7. HcPathBuilder? customPath,
  8. EdgeInsets padding = EdgeInsets.zero,
})

Implementation

HcDashPainter({
  this.strokeWidth = 2,
  this.dashPattern = const <double>[3, 1],
  this.color = Colors.black,
  this.borderType = HcBorderType.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');
}