update method

void update(
  1. String text
)

Implementation

void update(String text) {
  if(controller.text != text) {
    controller.text = text;
    controller.selection = TextSelection.collapsed(offset: text.length);
  }
}