KeyboardService class abstract
A service class that provides methods to detect keyboard visisbility and the dismissal of the keyboard.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
dismiss(
{BuildContext? unfocus}) → void -
Will dismiss the keyboard if it is currently visible
The optional parameter
unfocus
will also unfocus the input field in the BuildContext widget tree. -
isVisible(
BuildContext context) → bool - Returns a boolean value that indicates if the keyboard is currently is visible or not.