imageToStorage function
拷贝一个文件到Storage ID >>>
Implementation
String? imageToStorage(String sourcePath) {
String uuid = Uuid().v4();
String destFile = FilePath().imageFilename(uuid);
File file = File(sourcePath);
if (file.existsSync()) {
file.copySync(destFile);
return uuid;
} else {
return null;
}
}