createStorageByFile method
透過檔案建立檔案儲存,如果建立成功將返回檔案儲存資訊
Implementation
Future<Storage> createStorageByFile(File file) {
if (Util.isWeb) {
throw Exception('Not support StorageResource#createStorageByFile on web');
} else {
return createStorageByBytes(file.readAsBytesSync());
}
}