install static method

void install(
  1. WidgetTester tester, {
  2. double fakeKeyboardHeight = _defaultKeyboardHeight,
  3. Duration keyboardAnimationTime = const Duration(milliseconds: 600),
})

Implementation

static void install(
  WidgetTester tester, {
  double fakeKeyboardHeight = _defaultKeyboardHeight,
  Duration keyboardAnimationTime = const Duration(milliseconds: 600),
}) {
  if (_instance != null) {
    return;
  }

  _instance = TestSuperKeyboard(
    tester,
    fakeKeyboardHeight: fakeKeyboardHeight,
    keyboardAnimationTime: keyboardAnimationTime,
  );

  SuperKeyboard.testInstance = _instance;
}