getControlPointX method

double getControlPointX(
  1. double width
)

Implementation

double getControlPointX(double width) {
  if(showCurvedByDefault) {
    return width + archHeight;
  } else if (offset.dx <= width) {
    return width;
  } else if (offset.dx >= width + archHeight) {
    return width + archHeight;
  } else {
    return offset.dx;
  }
}