TemplateDefinition class
Defines the complete configuration and metadata of an FKIT template.
Constructors
-
TemplateDefinition({required int schema, required String name, required TemplateSetup setup, required TemplateRequirements requirements, required String displayName, required String description, required TemplateDi di, required TemplateBarrel barrel, required String version, required String author, required List<
String> supports, required TemplateFeature feature, required Map<String, TemplateComponent> components, required Map<String, TemplateGroup> groups, required TemplateRouter router, required Map<String, TemplateModule> modules}) -
Creates a template definition.
const
- TemplateDefinition.fromMap(Map map)
-
Creates a template definition from the provided
map.factory
Properties
-
The author of the template.
final
- barrel → TemplateBarrel
-
The barrel file generation configuration of the template.
final
-
components
→ Map<
String, TemplateComponent> -
The components available for generation.
final
- description → String
-
A description of the template and its purpose.
final
- di → TemplateDi
-
The dependency injection configuration of the template.
final
- displayName → String
-
The human-readable name of the template.
final
- feature → TemplateFeature
-
The feature generation configuration of the template.
final
-
groups
→ Map<
String, TemplateGroup> -
The component groups defined by the template.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modules
→ Map<
String, TemplateModule> -
The modules available in the template.
final
- name → String
-
The unique name of the template.
final
- requirements → TemplateRequirements
-
The package and generation requirements of the template.
final
- router → TemplateRouter
-
The routing configuration of the template.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → int
-
The schema version used by the template definition.
final
- setup → TemplateSetup
-
The project setup configuration for the template.
final
-
supports
→ List<
String> -
The capabilities or architectures supported by the template.
final
- version → String
-
The version of the template.
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