KeyboardDetectionController class

Constructors

KeyboardDetectionController({void onChanged(KeyboardState state)?})
Controller of the keyboard visibility.

Properties

ensureSizeLoaded Future<void>
Ensure that the keyboard size is loaded.
no setter
hashCode int
The hash code for this object.
no setterinherited
isSizeLoaded bool
To ensure that the keyboard size is available.
no setter
onChanged → (void Function(KeyboardState state)?)
This value will be notified when the keyboard is starting visible (true) or not (false).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Get the keyboard size. The keyboard must be visible at least 1 time to make this works. If not, this value will return 0. You can check to ensure the keyboard size is available via isKeyboardSizeLoaded.
no setter
state KeyboardState
State of the Keyboard.
no setter
stream Stream<KeyboardState>
Get the current keyboard state stream.
no setter

Methods

addCallback(KeyboardDetectionCallback callback) → void
Add callback to be executed when the keyboard state changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stateAsBool([bool includeTransitionalState = false]) bool?
Get current state of the keyboard visibility.
toString() String
A string representation of this object.
inherited

Operators

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