ConfigurationProperties 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({
    JetProperty.SERVER_PORT.copyWith(value: 8081),
    JetProperty.SECURITY_ENABLED.copyWith(value: true),
    JetProperty.MY_FEATURE_ENABLED.copyWith(value: true),
})

Constructors

ConfigurationProperties([Set<JetProperty>? properties])
Creates a new configuration property from the provided properties map.
ConfigurationProperties.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 JetProperty.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