getSystemInfo method

  1. @override
Future<SystemInfo> getSystemInfo()
override

Implementation

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