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