loadMateProfiles method

Future<void> loadMateProfiles()

Implementation

Future<void> loadMateProfiles() async {
  try {
    if(mateIds.isEmpty) {
      ///TODO Implement once algorithm of mates and eventmates is available.
      //await loadItemmates();
      await loadProfiles();
    } else {
      await loadMatesFromList(mateIds);
    }

    ///TODO Implement once algorithm of itemmates and eventmates is available.
    //totalProfiles.addAll(itemmates);
    _totalProfiles.addAll(_profiles);
  } catch (e) {
    AppConfig.logger.e(e.toString());
  }

  isLoading.value = false;
}