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