simulateSoftwareKeyboardInsets method

TestSuperEditorConfigurator simulateSoftwareKeyboardInsets(
  1. bool doSimulation, {
  2. double simulatedKeyboardHeight = 300,
  3. bool animateKeyboard = false,
})

When true, adds MediaQuery view insets to simulate the appearance of a software keyboard whenever the IME connection is active - when false, does nothing.

Implementation

TestSuperEditorConfigurator simulateSoftwareKeyboardInsets(
  bool doSimulation, {
  double simulatedKeyboardHeight = 300,
  bool animateKeyboard = false,
}) {
  _config
    ..simulateSoftwareKeyboardInsets = doSimulation
    ..simulatedKeyboardHeight = simulatedKeyboardHeight
    ..animateSimulatedSoftwareKeyboard = animateKeyboard;
  return this;
}