getSupportedModes method
Returns a list of all supported display modes.
Each mode contains resolution (width x height) and refresh rate information. Requires Android 6.0 (API level 23) or higher.
Implementation
@override
Future<List<DisplayMode>> getSupportedModes() async {
final List<dynamic> result = await methodChannel.invokeMethod(
'getSupportedModes',
);
return result
.map((e) => DisplayMode.fromMap(Map<dynamic, dynamic>.from(e)))
.toList();
}