getIndicatorText method
Used to get the IndicatorText.
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;
}