Profile.not constructor
Create a profile annotation that excludes certain profiles
🎯 Target:
Can only be applied to classes:
Example:
@Component()
@Profile.not(['production'])
class DebugService {
// Active in all profiles except production
}
Implementation
const Profile.not(List<String> profiles) : this(profiles, negate: true);