KeyboardObserver constructor

const KeyboardObserver({
  1. Key? key,
  2. Widget? child,
  3. KeyboardObserverListener? showListener,
  4. KeyboardObserverListener? hideListener,
  5. Curve? curveShow,
  6. Duration durationShow = const Duration(milliseconds: 500),
  7. Curve? curveHide,
  8. Duration durationHide = const Duration(milliseconds: 500),
  9. KeyboardAnimationListener? showAnimationListener,
  10. KeyboardAnimationListener? hideAnimationListener,
  11. KeyboardAnimationMode animationMode = KeyboardAnimationMode.simulated,
})

Implementation

const KeyboardObserver({
  Key? key,
  this.child,
  this.showListener,
  this.hideListener,
  this.curveShow,
  this.durationShow = const Duration(milliseconds: 500),
  this.curveHide,
  this.durationHide = const Duration(milliseconds: 500),
  this.showAnimationListener,
  this.hideAnimationListener,
  this.animationMode = KeyboardAnimationMode.simulated,
}) : super(key: key);