TemplateGenerator class
Manages code templates and generation logic for asset classes and exports.
Provides template generation for:
- Asset constant classes
- Library export files
- Individual asset constants
Uses consistent naming conventions and formatting standards.
Constructors
- TemplateGenerator()
-
Creates a new TemplateGenerator instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateAssetClassTemplate(
{required String projectName, required String directoryName, required List< Asset> assets, required String assetsBasePath}) → String - Generates a complete Dart class template for asset constants.
-
generateAssetConstant(
Asset asset, String packagePath) → String - Generates a single asset constant definition.
-
generateExportTemplate(
List< String> exportFiles) → String - Generates a library export file template.
-
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