HcDottedBorder constructor

HcDottedBorder({
  1. Key? key,
  2. required Widget child,
  3. Color color = Colors.black,
  4. double strokeWidth = 1,
  5. HcBorderType borderType = HcBorderType.rect,
  6. List<double> dashPattern = const <double>[3, 1],
  7. EdgeInsets padding = const EdgeInsets.all(2),
  8. EdgeInsets borderPadding = EdgeInsets.zero,
  9. Radius radius = const Radius.circular(0),
  10. StrokeCap strokeCap = StrokeCap.butt,
  11. HcPathBuilder? customPath,
})

Implementation

HcDottedBorder({
  super.key,
  required this.child,
  this.color = Colors.black,
  this.strokeWidth = 1,
  this.borderType = HcBorderType.rect,
  this.dashPattern = const <double>[3, 1],
  this.padding = const EdgeInsets.all(2),
  this.borderPadding = EdgeInsets.zero,
  this.radius = const Radius.circular(0),
  this.strokeCap = StrokeCap.butt,
  this.customPath,
}) {
  assert(_isValidDashPattern(dashPattern), 'Invalid dash pattern');
}