getWidth method

double getWidth()

Implementation

double getWidth() {
  return width ?? max((0.7 * labelFontSize) * label.length, minWidth);
}