SingDashedLine constructor

const SingDashedLine({
  1. Key? key,
  2. Color? color,
  3. double dashWidth = 5.0,
  4. double dashHeight = 1.0,
  5. double dashSpace = 3.0,
  6. double width = 200.0,
  7. double height = 1.0,
  8. bool isRound = true,
})

Implementation

const SingDashedLine({
  super.key,
  this.color,                  // 虚线颜色
  this.dashWidth = 5.0,        // 默认虚线长度为5.0
  this.dashHeight = 1.0,       // 默认虚线高度为5.0
  this.dashSpace = 3.0,        // 默认间隔为3.0
  this.width = 200.0,          // 默认宽度为200
  this.height = 1.0,           // 默认高度为1.0
  this.isRound = true,         // 是否圆角
});