getIndicatorText method

TextPainter getIndicatorText(
  1. dynamic text,
  2. TextStyle style
)

Implementation

TextPainter getIndicatorText(var text, TextStyle style) {
  TextPainter tp6 = TextPainter(
    text: TextSpan(style: style, text: text.toString()),
    textAlign: TextAlign.center,
    textDirection: TextDirection.ltr,
  );
  tp6.layout();

  return tp6;
}