WarnValues class

Values of a @ConfigurationProperties field that are accepted but that the editor should warn about, with the reason in message.

It is for the editor metadata only (warn in spring_metadata.json). values are enum constants or literals, such as [Mode.insecure] or ['*'].

/// How to treat certificates.
@WarnValues([TlsMode.insecure], 'Skips certificate checks.')
TlsMode tls = TlsMode.verify;

Constructors

WarnValues(List<Object> values, String message)
Warns about values with message.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
Why the values are risky.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → List<Object>
The values the warning is about.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited