OffsetChangeObserver constructor

OffsetChangeObserver({
  1. required BuildContext context,
  2. required OffsetChangedCallback onChanged,
  3. KeyboardStateCallback? onKeyboard,
})

Create an observer who needs to observe the offset state of the widget.

The context argument must not be null. The onChanged argument must not be null.

Implementation

OffsetChangeObserver({
  required this.context,
  required this.onChanged,
  this.onKeyboard,
});