DashedLine constructor

DashedLine({
  1. double dashLength = DEFAULT_DASH_LENGTH,
  2. double? dashSpacing,
  3. double positiveSpaceRatio = 0.5,
  4. double buff = 0,
  5. double? pathArc,
  6. Vector3 start = RIGHT,
  7. Vector3 end = LEFT,
  8. Color color = WHITE,
})

Implementation

DashedLine(
    {this.dashLength = DEFAULT_DASH_LENGTH,
    this.dashSpacing,
    this.positiveSpaceRatio = 0.5,
    double buff = 0,
    double? pathArc,
    Vector3 start = RIGHT,
    Vector3 end = LEFT,
    Color color = WHITE})
    : super(
        start: start,
        end: end,
        buff: buff,
        pathArc: pathArc,
        color: color,
      ) {
  var numDashes = getDashCount();
  var dashes = DashedVMobject(this,
      numDashes: numDashes, positiveSpaceRatio: positiveSpaceRatio);
  clearPoints();
  add(dashes.submobjects);
}