Generator class

Creates the feature directory structure and renders Mustache templates into Dart source files.

The generator is file-system focused and deliberately avoids business logic. It expects a fully prepared Context and respects the configured presentation layer (bloc or riverpod).

Constructors

Generator()

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

generateBoilerplate({required String featureName, required String basePath, required String templateBasePath, required Context context}) → void
Renders all Mustache templates (model, entity, repository, datasource, usecase, bloc/event/state, or riverpod notifier) into the feature directory.
generateFeature(Context context) Future<void>
Creates directories and generates all boilerplate files for the feature.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderTemplate(String templatePath, String outPath, Map<String, dynamic> context) → void
Reads a .mustache template, injects context values, and writes to outPath.
toString() String
A string representation of this object.
inherited

Operators

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