EmbeddedPropertyName class
Marks a property within an EmbeddedConfig annotated class with a custom configuration key to map to the property.
By default, the configuration key mapped to any given property has the same name as the property in Dart code. This annotation allows that key to be changed.
For example, given the following configuration:
{ "some_key": "value" }
You can embed the some_key
value, without using underscore case in Dart,
by doing the following:
@EmbeddedConfig(...)
abstract class Config {
@EmbeddedPropertyName('some_key')
String get someKey;
}
Constructors
- EmbeddedPropertyName(String name)
-
const
Properties
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