MobileWindowGeometry class
Mobile application window geometry as reported by the super_keyboard
plugin.
This geometry includes values that are deemed relevant to keyboard behavior, but excludes geometry that's unrelated to keyboards, such as gesture areas on the left/right/top of the screen, and the space taken up by the camera at the top of the screen.
Constructors
- MobileWindowGeometry.new({KeyboardState? keyboardState, double? keyboardHeight, double? bottomPadding})
-
const
Properties
- bottomPadding → double?
-
Bottom padding that the OS expects apps to respect when the keyboard is closed.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- keyboardHeight → double?
-
The current height of the software keyboard.
final
- keyboardState → KeyboardState?
-
The current state of the software keyboard, e.g., open, opening, closed, closing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyTo(
MobileWindowGeometry baseValues) → MobileWindowGeometry -
Returns a copy of
baseValues
with values from this MobileWindowGeometry applied on top, i.e., the values in this MobileWindowGeometry replace values inbaseValues
. -
copyWith(
{KeyboardState? keyboardState, double? keyboardHeight, double? bottomPadding}) → MobileWindowGeometry -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateWith(
MobileWindowGeometry newValues) → MobileWindowGeometry -
Returns a copy of this MobileWindowGeometry with the
newValues
applied on top, i.e., replaces values in this MobileWindowGeometry with values from the givennewValues
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override