CubicLine constructor

CubicLine({
  1. required OffsetPoint start,
  2. required Offset cpStart,
  3. required Offset cpEnd,
  4. required OffsetPoint end,
  5. Offset? upStartVector,
  6. Offset? upEndVector,
  7. double startSize = 0.0,
  8. double endSize = 0.0,
})

Implementation

CubicLine({
  required this.start,
  required this.cpStart,
  required this.cpEnd,
  required this.end,
  Offset? upStartVector,
  Offset? upEndVector,
  this.startSize: 0.0,
  this.endSize: 0.0,
}) : super(start.dx, start.dy) {
  _upStartVector = upStartVector;
  _upEndVector = upEndVector;
  _velocity = end.velocityFrom(start);
  _distance = start.distanceTo(end);
}