setText method

void setText(
  1. TextPainter textPainter,
  2. String forKey
)

Implementation

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