ApplicationConfigurationProperties class final
ConfigurationProperties is a class for defining application configuration in a typed and expressive way,
similar to defining settings in application.yaml, but directly in Dart.
This provides a structured way to define and access configuration properties.
Example: Typed config definition
ConfigurationProperties({
JetleafProperty.SERVER_PORT.copyWith(value: 8081),
JetleafProperty.SECURITY_ENABLED.copyWith(value: true),
JetleafProperty.MY_FEATURE_ENABLED.copyWith(value: true),
})
Constructors
-
ApplicationConfigurationProperties([Set<
JetleafProperty> ? properties]) -
Creates a new configuration property from the provided
propertiesmap. - ApplicationConfigurationProperties.empty()
- Creates a completely empty configuration.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → Map< String, Object> -
Converts the internal typed map to a standard
Map<String, dynamic>, mapping each JetleafProperty.key to its associated value. -
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