refreshUrl method

Future<String?> refreshUrl(
  1. String targetUrl
)

Explicitly refresh CDN urls for uploaded images on the Stream CDN (only needed for files on the Stream CDN).

Note that Stream CDN is not enabled by default. If in doubt, please contact us.

Implementation

Future<String?> refreshUrl(String targetUrl) {
  final token =
      userToken ?? TokenHelper.buildFilesToken(secret!, TokenAction.read);
  return _images.refreshUrl(token, targetUrl);
}