setActiveProfiles method
Replaces the current set of active profiles with the given list.
Active profiles influence conditional configuration, especially with profile-based pods or property loading.
Example:
env.setActiveProfiles(['production']);
Implementation
@override
void setActiveProfiles(List<String> profiles) {
return synchronized(_activeProfiles, () {
_activeProfiles.clear();
for (String profile in profiles) {
validateProfile(profile);
_activeProfiles.add(profile);
}
});
}