getMediaList method Null safety

Future<List<Media?>?> getMediaList()

Get the media files list from the Drone (SD Card).

Returns a list of Media files. The index of each file is used to download or delete the file.

Implementation

static Future<List<Media?>?> getMediaList() async {
  final mediaList = await _api?.getMediaList();
  return mediaList;
}