copyWith method
Creates a copy of this property with the specified properties changed.
Base class for all Jetleaf framework configuration properties.
A JetleafProperty defines a typed configuration entry used within Jetleaf and related Jetleaf-based frameworks. Each property has:
- A unique
keyused for lookup in the environment. - An optional
valuewhen the property is not set. - An optional
descriptionto document its purpose.
Properties are strongly typed using generics. For example:
const JetleafProperty serverPort = JetleafProperty("server.port", 8080, "The TCP port the server will bind to.");
Jetleaf also supports user-defined properties via JetleafProperty.custom.
Implementation
JetleafProperty copyWith({String? key, Object? value, String? description}) => _JetleafProperty(key ?? this.key, value ?? this.value, description ?? this.description);