keyboardHeight method
The keyboard height for orientation, or null when this device
declares none.
The value to pass to DeviceSimulation.copyWith(keyboardInset: …) to
raise this device's keyboard:
await c.update(
(s) => s.copyWith(keyboardInset: preset.keyboardHeight(s.orientation)),
);
Implementation
double? keyboardHeight(Orientation orientation) =>
orientation == Orientation.portrait
? portraitKeyboardHeight
: landscapeKeyboardHeight;