DottedBorder constructor

DottedBorder({
  1. Key? key,
  2. required Widget child,
  3. Color color = Colors.black,
  4. double strokeWidth = 1,
  5. BorderType borderType = BorderType.Rect,
  6. List<double> dashPattern = const <double>[3, 1],
  7. EdgeInsets padding = const EdgeInsets.all(2),
  8. Radius radius = const Radius.circular(0),
  9. StrokeCap strokeCap = StrokeCap.butt,
  10. 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');
}