updateKeyboardStatus method

void updateKeyboardStatus({
  1. required bool isOpen,
  2. required double height,
})

Implementation

void updateKeyboardStatus({required bool isOpen, required double height}) {
  if (height > maxHeight) {
    maxHeight = height;
  }
  this.height = height;
  this.isOpen = isOpen;
  update();
}