DashedLine constructor

const DashedLine({
  1. Key? key,
  2. required Color color,
  3. double dashLength = 4,
  4. double dashGap = 4,
  5. double lineWith = 1,
  6. Axis direction = Axis.horizontal,
})

Implementation

const DashedLine({
  super.key,
  required this.color,
  this.dashLength = 4,
  this.dashGap = 4,
  this.lineWith = 1,
  this.direction = Axis.horizontal, // 默认方向为横向
});