textPainter property

TextPainter? textPainter
inherited

Implementation

TextPainter? get textPainter {
  if (label != null) {
    return _textPainter ??= TextPainter(
      text: TextSpan(text: label, style: labelStyle),
      textAlign: TextAlign.center,
      textDirection: TextDirection.ltr,
    )..layout();
  }
  return null;
}