putStartAndEndOn method

  1. @override
void putStartAndEndOn(
  1. Vector3 start,
  2. Vector3 end
)
override

Implementation

@override
void putStartAndEndOn(
  Vector3 start,
  Vector3 end,
) {
  var currentStart = getStart();
  var currentEnd = getEnd();

  if (currentStart == currentEnd) {
    this.start = start;
    this.end = end;
    generatePoints();
  }

  return super.putStartAndEndOn(
    start,
    end,
  );
}