# readData method

void readData()

## Implementation

    void readData() async {
      final Map<String, String> settings = await WSLApi().readConfig();
      settings.forEach((key, value) {
        _settings[key] = TextEditingController(text: value);
      });
      String? syncIP = prefs.getString('SyncIP');
      if (syncIP != null && syncIP != '') {
        _syncIpTextController.text = syncIP;
      }
      String? repoLink = prefs.getString('RepoLink');
      if (repoLink != null && repoLink != '') {
        _repoTextController.text = repoLink;
      }
      if (prefs.containsKey('DockerRepoLink')) {
        String? dockerRepoLink = prefs.getString('DockerRepoLink');
        if (dockerRepoLink != null && dockerRepoLink != '') {
          _dockerrepoController.text = dockerRepoLink;
        }
      }
      showDocker = prefs.getBool('showDocker') ?? false;
      if (!mounted) return;
      setState(() {
        _settings = _settings;
      });
    }