BaseGenerator class abstract

Implementers

Constructors

BaseGenerator({TemplateService templateService = const TemplateService(), TemplateResolver templateResolver = const TemplateResolver(), String? templatesRootOverride, String? workingDirectory})

Properties

hashCode int
The hash code for this object.
no setterinherited
projectDir String
Protected accessor for the project directory path.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templatesRootOverride String?
final
workingDirectory String?
final

Methods

checkFileExists(String path, String entityName, {bool force = false}) → void
copyTemplate({required String templateSubPath, required String targetDir, required Map<String, String> variables, Map<String, List<Map<String, String>>>? lists, String category = 'features'}) Future<void>
detectStateManagement() String
ensureDirectory(String path) → void
generateTest({required String testTemplateSubPath, required String testDir, required Map<String, String> variables}) Future<void>
Generates a test file from a test template under templates/tests/.
getFeatureDir(String featureName) String
getNewFeatureDir(String featureName) String
getProjectName() String
Returns the project name from pubspec.yaml.
isSnakeCase(String name) bool
logDryRun(String action, String path) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPascalCase(String snakeCase) String
toString() String
A string representation of this object.
inherited

Operators

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