downloadMedia static method

Future<String?> downloadMedia(
  1. int fileIndex
)

Downloads a specific media file from the Drone's SD card (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;
}