imageToStorageAsync function
将文件异步拷贝到Storage ID
sourcePath 源文件路径
返回 Future<String?> 存储ID,如果文件不存在则返回null
Implementation
Future<String?> imageToStorageAsync(String sourcePath) async {
await FilePath.setup();
return imageToStorage(sourcePath);
}
将文件异步拷贝到Storage ID
sourcePath 源文件路径
返回 Future<String?> 存储ID,如果文件不存在则返回null
Future<String?> imageToStorageAsync(String sourcePath) async {
await FilePath.setup();
return imageToStorage(sourcePath);
}