TemplateRegistry class

模板注册表,确保初始化一次后不会被意外清空或覆盖。

Properties

hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setter
manifests List<KoiTemplateManifest>
获取所有模板(未初始化时返回空列表,不会抛异常)。
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

initialize(List<KoiTemplateManifest> manifests) → void
初始化模板列表,仅允许调用一次。 第二次调用会被静默忽略(幂等安全)。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetForTesting() → void
仅用于测试:重置注册表,允许重新初始化。
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance TemplateRegistry
final