setText method

void setText(
  1. String text
)

set content

Implementation

void setText(String text) {
  // if inputType is BadPhoneInput, take risk yourself
  // if (inputType == BadPhoneInput) {
  //   throw UnsupportedError('Cannot set text for phone input');
  // }

  _textEditingController.text = text;
}