fromPath static method
根据路径创建StorageImage对象
sourcePath 源文件路径
返回 StorageImage 对象,如果文件不存在则返回null
Implementation
static StorageImage? fromPath(String sourcePath) {
String? sid = imageToStorage(sourcePath);
if (sid == null) {
return null;
}
return StorageImage(sid);
}