clearAllTestValues method

  1. @Deprecated('Use WidgetTester.platformDispatcher.clearAllTestValues() and WidgetTester.view.reset() instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.9.0-0.1.pre.')
void clearAllTestValues()

Delete any test value properties that have been set on this TestWindow as well as its platformDispatcher.

After calling this, the real SingletonFlutterWindow and PlatformDispatcher values are reported again.

If desired, clearing of properties can be done on an individual basis, e.g., clearDevicePixelRatioTestValue.

Implementation

@Deprecated(
  'Use WidgetTester.platformDispatcher.clearAllTestValues() and WidgetTester.view.reset() instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.9.0-0.1.pre.'
)
void clearAllTestValues() {
  clearDevicePixelRatioTestValue();
  clearPaddingTestValue();
  clearGestureSettingsTestValue();
  clearDisplayFeaturesTestValue();
  clearPhysicalSizeTestValue();
  clearViewInsetsTestValue();
  platformDispatcher.clearAllTestValues();
}