getStorageInfo static method

Future<StorageInfo> getStorageInfo()

Get storage information

Implementation

static Future<StorageInfo> getStorageInfo() async {
  try {
    final result = await _channel.invokeMethod('getStorageInfo');
    return StorageInfo.fromMap(Map<String, dynamic>.from(result as Map));
  } on PlatformException catch (e) {
    throw Exception('Failed to get storage info: ${e.message}');
  }
}