getScreenInfo method

  1. @override
Future<Map<String, dynamic>?> getScreenInfo()
override

Implementation

@override
Future<Map<String, dynamic>?> getScreenInfo() async {
  final version = await methodChannel
      .invokeMethod<Map<dynamic, dynamic>>('getScreenInfo');
  final Map<String, dynamic> result = {};
  (version as Map<dynamic, dynamic>).forEach((key, value) {
    result[key as String] = value;
  });
  return result;
}