closeKeyboard method

void closeKeyboard()

Hides the soft keyboard; the view keeps the focus.

Implementation

void closeKeyboard() {
  _viewKey.currentState?.closeKeyboard();
}