FConfigClearAll class
本文件包含了额外的FConfig注解定义,用于实现高级配置功能 如配置清除、值监听、变更通知等。 这些注解与代码生成器配合使用,可自动生成相关功能代码。 用于标记清除所有配置的注解。
该注解只能用于方法上,配合代码生成器实现批量清除配置的功能。 使用示例:
@FConfigClearAll()
Future<void> clearAllConfig() async {} // 方法体将被代码生成器替换
- Implemented types
- Annotations
-
- @Target.new({TargetKind.method})
Constructors
- FConfigClearAll()
-
构造函数,常量形式。
const
Properties
- classCode → String?
-
生成的类代码片段(此处无实现)。
final
- funCode → String
-
生成的目标方法代码片段,实现清除所有配置并刷新读取。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAsync → bool
-
是否为异步方法,这里为 true。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueUpdateListenerFunCode → String?
-
生成的值变更监听方法代码片段(此处无实现)。
final
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