getScreenInfo method
Implementation
@override
Future<ScreenInfo> getScreenInfo() async {
final map = await methodChannel.invokeMapMethod<dynamic, dynamic>('getScreenInfo');
if (map == null) {
throw PlatformException(
code: 'NULL_RESPONSE',
message: 'getScreenInfo returned null',
);
}
return ScreenInfo.fromMap(map);
}