ArrowTip constructor

ArrowTip({
  1. double length = DEFAULT_ARROW_TIP_LENGTH,
  2. double startAngle = PI,
  3. Color color = WHITE,
})

Implementation

ArrowTip({
  double length = DEFAULT_ARROW_TIP_LENGTH,
  double startAngle = PI,
  Color color = WHITE,
}) : super(startAngle: startAngle, color: color) {
  rotate(startAngle);
  setWidth(length, stretch: true);
  setHeight(length, stretch: true);
}