# getDistroLinks method

Future<Map<String, String>> getDistroLinks()

Get list of distros from Repo

## Implementation

    Future<Map<String, String>> getDistroLinks() async {
      try {
        var response = await Dio().get(gitRepoLink);
        if (response.statusCode != null && response.statusCode! < 300) {
          var jsonData = response.data;
          Map<String, String> distros = {};
          jsonData.forEach((key, value) {
            distros.addAll({key: value});
          });
          distroRootfsLinks = distros;
          return distros;
        }
      } catch (e) {
        // ignored
      }
      // Default list
      return distroRootfsLinks;
    }