Arrow constructor

Arrow({
  1. required Vector3 start,
  2. required Vector3 end,
  3. double buff = MED_SMALL_BUFFER,
  4. double? pathArc,
  5. Color color = WHITE,
})

Implementation

Arrow({
  required Vector3 start,
  required Vector3 end,
  double buff = MED_SMALL_BUFFER,
  double? pathArc,
  Color color = WHITE,
}) : super(
        start: start,
        end: end,
        buff: buff,
        pathArc: pathArc,
        color: color,
      ) {
  initialStrokeWidth = strokeWidth;
  addTip(side: TIP_AT_END);
  setStrokeWidthFromLength();
}