labelWidth function

double labelWidth(
  1. double text,
  2. TextStyle style,
  3. int pipSize
)

Returns the width of the label with the given text,

Implementation

double labelWidth(double text, TextStyle style, int pipSize) =>
    makeTextPainter(text.toStringAsFixed(pipSize), style).width;