setText method
Implementation
void setText(
TextPainter textPainter,
String forKey,
) {
if (textPainter.textDirection == null) {
textPainter.textDirection = TextDirection.ltr;
textPainter.layout();
}
dynamicText[forKey] = textPainter;
}