closeKeyboard method

void closeKeyboard()

Closes keyboard if open

Implementation

void closeKeyboard() {
  if (isKeyboardOpen) FocusManager.instance.primaryFocus?.unfocus();
}