negate property

bool negate
final

Whether to negate the profile expression

Example:

@Component()
@Profile(['!production']) // Not in production
class DebugService {
  // Active in all profiles except production
}

Implementation

final bool negate;