straightArrow function

Path straightArrow(
  1. Path path,
  2. double contentWidth,
  3. double contentHeight,
  4. bool fitBellow,
  5. double distanceFromObject,
)

Implementation

Path straightArrow(Path path, double contentWidth, double contentHeight,
    bool fitBellow, double distanceFromObject) {
  if (fitBellow) {
    path.relativeQuadraticBezierTo(0, 0, 0, -distanceFromObject + 20);
  } else {
    path.relativeQuadraticBezierTo(0, 0, 0, distanceFromObject - 20);
  }

  return path;
}