setUp method Null safety
- KeyDataTransitMode value
override
A function that will be called before each value is tested, with the value that will be tested.
This function should preserve any state needed to restore the testing
environment back to its base state when tearDown is called in the
Object
that is returned. The returned object will then be passed to
tearDown as a memento
when the test is complete.
Implementation
@override
Future<KeyDataTransitMode?> setUp(KeyDataTransitMode value) async {
final KeyDataTransitMode? previousSetting = debugKeyEventSimulatorTransitModeOverride;
debugKeyEventSimulatorTransitModeOverride = value;
return previousSetting;
}