updateText method

void updateText(
  1. String text
)

Changes the text of this node with the given text.

Implementation

void updateText(String text) {
  _updatedText = text;
}