getScreenInfos method

Future<List<ScreenInfo>> getScreenInfos()

Returns device's screen configuration.

Implementation

Future<List<ScreenInfo>> getScreenInfos() async {
  var result = await _client.send('Emulation.getScreenInfos');
  return (result['screenInfos'] as List)
      .map((e) => ScreenInfo.fromJson(e as Map<String, dynamic>))
      .toList();
}