fetchSettings method

Future fetchSettings()

Implementation

Future fetchSettings() async {
  _showCircularProgress = true;
  if (settings.id.isNotEmpty) {
    return;
  }
  if (settings.id.isEmpty) {
    var data = await settingsRepository.fetchSettings();
    if (data != null) settings = data;
  }
  _showCircularProgress = false;
  update();
}