download static method

Future<String> download(
  1. String mediaId
)

Download a media item to the device's local storage.

Returns the local file path. Checks cache before downloading.

Implementation

static Future<String> download(String mediaId) async {
  _ensure();
  return _provider!.downloadMedia(mediaId);
}