getProfileTypes static method

List<ProfileType> getProfileTypes()

Implementation

static List<ProfileType> getProfileTypes() {

  List<ProfileType> profileTypes = List.from(ProfileType.values);
  profileTypes.removeWhere((type) => type == ProfileType.broadcaster);

  switch(AppConfig.instance.appInUse) {
    case AppInUse.g:
      profileTypes.removeWhere((type) => type == ProfileType.band);
      profileTypes.removeWhere((type) => type == ProfileType.researcher);
    case AppInUse.e:
      profileTypes.removeWhere((type) => type == ProfileType.band);
      profileTypes.removeWhere((type) => type == ProfileType.researcher);
    case AppInUse.c:
      profileTypes.removeWhere((type) => type == ProfileType.band);
    default:
      break;
  }

  return profileTypes;
}