WidgetFlutterBindingExtensions extension
Convenience extensions for more easily configuring WidgetTester for pre-set configurations
Methods
-
applyDeviceOverrides(
Device device) → Future< void> - Configure the Test device to match the configuration of the supplied device
-
resetDeviceOverrides(
) → Future< void> - Resets any configuration that may be been specified by applyDeviceOverrides
-
runWithDeviceOverrides(
Device device, {required Future< void> body()}) → Future<void> - Configure the Test device for the duration of the supplied operation and revert