keyboardInset property
The height a simulated software keyboard covers at the bottom of the screen, in simulated logical pixels, or null for no keyboard.
It reaches the app as MediaQuery.viewInsets.bottom — or the real
keyboard's own inset, whichever is deeper — so the app reacts exactly as
it would on the device: a Scaffold body shrinks, a scroll view keeps
the focused field visible, and the bottom safe area collapses under it
the way the engines collapse it.
A device's measured height lives on its preset (DevicePreset's
keyboardHeight, in package:device_preview/presets.dart); this field
is what a simulation currently shows, so it starts null even for a
device that declares one.
Implementation
final double? keyboardInset;