FConfigKey class
用于标记配置项的注解。
可用于字段、getter、setter、方法,支持自定义 key 名和默认值。
- Annotations
-
- @Target.new({TargetKind.field, TargetKind.getter, TargetKind.setter, TargetKind.method})
Constructors
- FConfigKey({String? keyName, String? defaultValue})
-
构造函数,支持可选 keyName 和 defaultValue。
const
Properties
- defaultValue → String?
-
配置项的默认值,若为空则无默认值。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyName → String?
-
配置项的 key 名,若为空则使用成员名。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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