getStorageInfo method
Implementation
@override
Future<List<StorageInfo>> getStorageInfo() async {
try {
final List<dynamic>? res = await methodChannel.invokeListMethod('getStorageInfo');
return SafeParser.parseList<StorageInfo>(res, (m) => StorageInfo.fromMap(m));
} on PlatformException catch (e) {
throw DeviceInspectorException(_mapErrorCode(e.code), e.message ?? 'Failed to get storage info', cause: e);
} catch (e) {
return const [];
}
}