dismissKeyboard method

void dismissKeyboard()

hide keyboard and clear current TextInput focus

Implementation

void dismissKeyboard() {
  FocusScope.of(context).requestFocus(FocusNode());
}