hideKeyboard method

void hideKeyboard()

Implementation

void hideKeyboard() {
  if (MediaQuery.of(context).viewInsets.bottom != 0) {
    FocusScope.of(context).requestFocus(FocusNode());
  }
}