newValue method

dynamic newValue(
  1. String text
)

Implementation

newValue(String text){
  value = TextEditingValue(
      text: text,
      selection:
      TextSelection.fromPosition(TextPosition(offset: text.length)));
}