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. EdgeInsets borderPadding = EdgeInsets.zero,
  8. Radius radius = const Radius.circular(0),
  9. StrokeCap strokeCap = StrokeCap.butt,
  10. PathBuilder? customPath,
  11. StackFit stackFit = StackFit.loose,
})

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.borderPadding = EdgeInsets.zero,
  this.radius = const Radius.circular(0),
  this.strokeCap = StrokeCap.butt,
  this.customPath,
  this.stackFit = StackFit.loose,
}) {
  assert(_isValidDashPattern(dashPattern), 'Invalid dash pattern');
}