getArrowHeightFit method
Implementation
getArrowHeightFit(Rect rect) {
if (arrowHeight < 0) {
return 0.0;
}
if (direction == ArrowDirection.left || direction == ArrowDirection.right) {
if (arrowHeight > rect.width) {
return rect.width;
}
} else {
if (arrowHeight > rect.height) {
return rect.height;
}
}
return arrowHeight;
}