ProjectGenerator class

This class generates the project structure for the specified architecture type.

The generated structure is based on the project name, the architecture type, the features, the features strategy, the state management type, and the configuration.

If the architecture type is ArchitectureTypes.cleanArchitecture, it will generate the project structure for the clean architecture. If the architecture type is ArchitectureTypes.mvcArchitecture, it will generate the project structure for the MVC architecture. If the architecture type is ArchitectureTypes.mvvmArchitecture, it will generate the project structure for the MVVM architecture.

Constructors

ProjectGenerator({required String projectName, required List<String> features, required Map<String, dynamic> config, required List<String> envVariables, required List<String> envsList, ArchitectureTypes architecture = ArchitectureTypes.cleanArchitecture, FeaturesStrategy featuresStrategy = FeaturesStrategy.inLib, StateManagementTypes stateManagement = StateManagementTypes.getX})
const

Properties

architecture → ArchitectureTypes
final
config Map<String, dynamic>
final
envsList List<String>
final
envVariables List<String>
final
features List<String>
final
featuresStrategy → FeaturesStrategy
final
hashCode int
The hash code for this object.
no setterinherited
projectName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateManagement → StateManagementTypes
final

Methods

generateStructure(String projectPath) → void
Generates the project structure.
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