StorageAdapter constructor

const StorageAdapter()

Adapter for storage functions.

Switch this adapter when running on various platforms such as local or Firebase.

Allows files to be uploaded from local with upload or uploadWithBytes.

After uploading, use fetchPublicURI or fetchDownloadURI to get the full path on the storage side.

Also, please make it available for download at download.

Please also enable file deletion with delete.

ストレージ機能を利用するためのアダプター。

ローカルやFirebaseなど様々なプラットフォーム上で動かす場合にこのアダプターを切り替えて利用します。

uploaduploadWithBytesでファイルをローカルからアップロードできるようにします。

アップロード後はfetchPublicURIfetchDownloadURIでストレージ側のフルパスを取得できるようにしてください。

また、downloadでダウンロードできるようにしてください。

deleteでファイル削除も可能にしてください。

Implementation

const StorageAdapter();