DottedBorder constructor
DottedBorder({
- Key? key,
- required Widget child,
- Color color = Colors.black,
- double strokeWidth = 1,
- BorderType borderType = BorderType.Rect,
- List<
double> dashPattern = const <double>[3, 1], - EdgeInsets padding = const EdgeInsets.all(2),
- Radius radius = const Radius.circular(0),
- StrokeCap strokeCap = StrokeCap.butt,
- PathBuilder? customPath,
Implementation
DottedBorder({super.key,
required this.child,
this.color = Colors.black,
this.strokeWidth = 1,
this.borderType = BorderType.Rect,
this.dashPattern = const <double>[3, 1],
this.padding = const EdgeInsets.all(2),
this.radius = const Radius.circular(0),
this.strokeCap = StrokeCap.butt,
this.customPath,
}) {
assert(_isValidDashPattern(dashPattern), 'Invalid dash pattern');
}