getspace property

Future<List<Storage>> getspace

this method provides you the path of internal and removable sd card and it also provides the used, free, available space

Implementation

static Future<List<Storage>> get getspace async {
  try {
    final object = await _channel.invokeMethod(_getStorageDetails);
    final List<Storage> storage = Storage.fromMap(object);
    return storage;
  } catch (e) {
    throw Exception(e);
  }
}