JetProperty class abstract
Base class for all Jet framework configuration properties.
A JetProperty defines a typed configuration entry used within JetLeaf and related Jet-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 JetProperty serverPort = JetProperty("server.port", 8080, "The TCP port the server will bind to.");
Jet also supports user-defined properties via JetProperty.custom.
Constructors
- JetProperty(String key, Object value, [String? description])
-
Base class for all Jet 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}) → JetProperty - Creates a copy of this property with the specified properties changed.
-
equalizedProperties(
) → List< Object?> -
Mixin-style contract for value-based equality,
hashCode
, andtoString
. -
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]) → JetProperty - Creates a user-defined custom property.