getMaxWidth method

double getMaxWidth(
  1. Characters? text,
  2. int avgLength,
  3. double? maxWidth
)

Implementation

double getMaxWidth(Characters? text, int avgLength, double? maxWidth) {
  if (isNullOrEmpty(text)) return 0;
  return messureText(text, width: maxWidth);
}