reset method Null safety

void reset()

Called by the test framework at the beginning of a widget test to prepare the binding for the next test.

If registerTestTextInput returns true when this method is called, the testTextInput is configured to simulate the keyboard.

Implementation

void reset() {
  _restorationManager = null;
  resetGestureBinding();
  testTextInput.reset();
  if (registerTestTextInput) {
    _testTextInput.register();
  }
}