DottedBorder constructor

DottedBorder({
  1. required Widget child,
  2. Color color = Colors.black,
  3. double strokeWidth = 1,
  4. BorderType borderType = BorderType.Rect,
  5. List<double> dashPattern = const <double>[3, 1],
  6. EdgeInsets padding = const EdgeInsets.all(2),
  7. Radius radius = const Radius.circular(0),
  8. StrokeCap strokeCap = StrokeCap.butt,
  9. PathBuilder? customPath,
})

Implementation

DottedBorder({
  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');
}