displayFeatures property
override
The display features to use for this test.
Defaults to the value provided by FlutterView.displayFeatures. This can only be set in a test environment to emulate different view configurations. A standard FlutterView is not mutable from the framework.
See also:
- FlutterView.displayFeatures for the standard implementation
- resetDisplayFeatures to reset this value specifically
- reset to reset all test values for this view
Implementation
@override
List<DisplayFeature> get displayFeatures => _displayFeatures ?? _view.displayFeatures;
Implementation
set displayFeatures(List<DisplayFeature> value) {
_displayFeatures = value;
platformDispatcher.onMetricsChanged?.call();
}