HcDottedBorder constructor
HcDottedBorder({
- Key? key,
- required Widget child,
- Color color = Colors.black,
- double strokeWidth = 1,
- HcBorderType borderType = HcBorderType.rect,
- List<
double> dashPattern = const <double>[3, 1], - EdgeInsets padding = const EdgeInsets.all(2),
- EdgeInsets borderPadding = EdgeInsets.zero,
- Radius radius = const Radius.circular(0),
- StrokeCap strokeCap = StrokeCap.butt,
- 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');
}