getAvailableCapacity method
Get the available capacity of a specified |id| storage device. The |id| is the transient device ID from StorageUnitInfo.
Implementation
Future<StorageAvailableCapacityInfo> getAvailableCapacity(String id) async {
var $res = await promiseToFuture<$js.StorageAvailableCapacityInfo>(
$js.chrome.system.storage.getAvailableCapacity(id));
return StorageAvailableCapacityInfo.fromJS($res);
}