displays property

  1. @override
Iterable<TestDisplay> displays
override

The current list of displays.

If any of their configurations change, onMetricsChanged will be called.

To get the display for a FlutterView, use FlutterView.display.

Platforms may limit what information is available to the application with regard to secondary displays and/or displays that do not have an active application window.

Presently, on Android and Web this collection will only contain the display that the current window is on. On iOS, it will only contains the main display on the phone or tablet. On Desktop, it will contain only a main display with a valid refresh rate but invalid size and device pixel ratio values.

Implementation

@override
Iterable<TestDisplay> get displays => _testDisplays.values;