updateKeyboardStatus method

void updateKeyboardStatus(
  1. bool status,
  2. double keyboardHeight
)

Implementation

void updateKeyboardStatus(bool status, double keyboardHeight) {
  isKeyboardOpened = status;
  if (this.keyboardHeight == null || this.keyboardHeight! < keyboardHeight) {
    this.keyboardHeight = keyboardHeight;
    if (keyboardHeight != 0) menuSizes.height = keyboardHeight;
  }
}