KeyboardVisibility constructor

KeyboardVisibility({
  1. Key? key,
  2. Widget? onKeyboardShow,
  3. Widget? onKeyboardHide,
})

Implementation

KeyboardVisibility({Key? key, Widget? onKeyboardShow, Widget? onKeyboardHide})
    : child = null,
      builder = ((_, __, bool isShown) => isShown
          ? (onKeyboardShow ?? emptyBox)
          : (onKeyboardHide ?? emptyBox)),
      super(key: key);