updateText method

void updateText(
  1. String text
)

Updates the label text

Implementation

void updateText(String text) {
  runInAction(() {
    _text.value = text;
  });
}