FirebaseStorageAdapter constructor
const
FirebaseStorageAdapter({
- FirebaseOptions? options,
- FirebaseStorage? storage,
StorageAdapter for handling files in Firebase Storage.
download is not available on the Web platform.
The https://firebasestorage.googleapis.com/v0/b/storageBucket/o/remoteRelativePath?alt=media is available at fetchPublicURI.
Basically, the default FirebaseStorage.instance is used, but it is possible to use a specified authentication database by passing storage when creating the adapter.
You can initialize Firebase by passing options.
Firebase Storageでファイルを扱うためのStorageAdapter。
Webのプラットフォームではdownloadが利用できません。
fetchPublicURIでhttps://firebasestorage.googleapis.com/v0/b/storageBucket/o/remoteRelativePath?alt=mediaが利用可能です。
基本的にデフォルトのFirebaseStorage.instanceが利用されますが、アダプターの作成時にstorageを渡すことで指定された認証データベースを利用することが可能です。
optionsを渡すことでFirebaseの初期化を行うことができます。
Implementation
const FirebaseStorageAdapter({
this.options,
FirebaseStorage? storage,
}) : _storage = storage;