updateText method

void updateText(
  1. String text
)

Update the current text and recalculate ghost text

Implementation

void updateText(String text) {
  _currentText = text;
  _updateGhostText();
  notifyListeners();
}