getDownloadUrl method
Returns a public download URL for the file at remotePath.
Throws if the file does not exist.
Implementation
@override
Future<String> getDownloadUrl(String remotePath) async {
try {
return await _storage.ref(remotePath).getDownloadURL();
} catch (error) {
throw Exception(
'FirebaseStorageUploader.getDownloadUrl failed for '
'"$remotePath": $error',
);
}
}