KeyboardObserver class

Usage Example:


final _keyboardObserver = KeyboardObserver(onShow: () {}, onHide: () {});

@override
void initState() {
  super.initState();
  this._keyboardObserver.startObserving();
}

@override
void dispose() {
 this._keyboardObserver.stopObserving();
 super.dispose();
}

Constructors

KeyboardObserver({FlutterView? view, void onShow()?, void onHide()?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onHide → void Function()?
final
onShow → void Function()?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startObserving() → void
NOTE:
stopObserving() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited