activeProfiles property

  1. @override
List<String> get activeProfiles
override

The profiles switched on for this run, such as ['prod', 'eu']; empty when none is.

They come from setActiveProfiles, or else from the property spring.profiles.active (read on first use, so a source added later still counts). The default profiles are not included.

environment.activeProfiles; // ['dev']

Implementation

@override
List<String> get activeProfiles => List.unmodifiable(_doGetActive());