EntityGenerator class

Inheritance

Constructors

EntityGenerator({TemplateService templateService = const TemplateService(), 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 setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templatesRootOverride String?
finalinherited
workingDirectory String?
finalinherited

Methods

checkFileExists(String path, String entityName, {bool force = false}) → void
inherited
copyTemplate({required String templateSubPath, required String targetDir, required Map<String, String> variables, Map<String, List<Map<String, String>>>? lists, String category = 'features'}) Future<void>
inherited
detectStateManagement() String
inherited
ensureDirectory(String path) → void
inherited
generate(String featureName, String entityName, {bool force = false, bool dryRun = false, bool withTests = true}) Future<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/.
inherited
getFeatureDir(String featureName) String
inherited
getNewFeatureDir(String featureName) String
inherited
getProjectName() String
Returns the project name from pubspec.yaml.
inherited
isSnakeCase(String name) bool
inherited
logDryRun(String action, String path) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPascalCase(String snakeCase) String
inherited
toString() String
A string representation of this object.
inherited

Operators

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