getUnpositionedTip method

ArrowTip getUnpositionedTip({
  1. double? length,
})

Implementation

ArrowTip getUnpositionedTip({double? length}) {
  length ??= getDefaultTipLength();

  var color = getColor();
  var style = tipStyle.copy();

  if (style.fillColors?.isEmpty ?? true) {
    style = style.withChange(fillColor: color.copy());
  }

  if (style.strokeColors?.isEmpty ?? true) {
    style = style.withChange(strokeColor: color.copy());
  }

  var tip = ArrowTip(length: length);
  tip.matchStyle(this);
  tip.setStyleFromVMobjectStyle(style);
  return tip;
}