downloadMedia method Null safety
- int fileIndex
Downloads a specific media file from the Drone (by Index).
The fileIndex
is used to locate the relevant file from the Media List and download it.
The getMediaList() must be triggered before using downloadMedia().
Implementation
static Future<String?> downloadMedia(int fileIndex) async {
final fileUrl = await _api?.downloadMedia(fileIndex);
return fileUrl;
}