reset method
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?.dispose();
_restorationManager = null;
platformDispatcher.defaultRouteNameTestValue = '/';
resetGestureBinding();
testTextInput.reset();
if (registerTestTextInput) {
_testTextInput.register();
}
CustomSemanticsAction.resetForTests(); // ignore: invalid_use_of_visible_for_testing_member
_enableFocusManagerLifecycleAwarenessIfSupported();
}