JetleafProperty class abstract

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 key used for lookup in the environment.
  • An optional value when the property is not set.
  • An optional description to 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.

Mixed-in types

Constructors

JetleafProperty(String key, Object value, [String? description])
Base class for all Jetleaf framework configuration properties.
const

Properties

description → String?
A human-readable description of the property.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
The unique key used to look up this property in the environment.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Object
The default value of this property if no explicit value is provided.
final

Methods

copyWith({String? key, Object? value, String? description}) → JetleafProperty
Creates a copy of this property with the specified properties changed.
equalizedProperties() → List<Object?>
Mixin-style contract for value-based equality, hashCode, and toString.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

custom(String key, Object value, [String? description]) → JetleafProperty
Creates a user-defined custom property.