getStorageInfo static method

Future<List<StorageInfo>> getStorageInfo()

Implementation

static Future<List<StorageInfo>> getStorageInfo() async {
  List reply = await (_channel.invokeMethod('getExtStorageData', []));
  List<StorageInfo> storageInfos = reply
      .map((storageInfoMap) => StorageInfo.fromJson(storageInfoMap))
      .toList();

  return storageInfos;
}