fetchPublicURI method

  1. @override
Future<Uri> fetchPublicURI(
  1. String remoteRelativePathOrId
)
override

Please make sure that you can get a publicly available URL. Use this URI when you want to retrieve images, etc. using Image.network, etc.

公開可能なURLを取得できるようにしてください。画像等をImage.networkなどで取得したい場合このURIを利用します。

Implementation

@override
Future<Uri> fetchPublicURI(String remoteRelativePathOrId) async {
  final bytes = await remoteStorage.read(remoteRelativePathOrId);
  return Uri.parse("blob:${base64Url.encode(bytes)}");
}