feature_generator library Main

A CLI tool for generating Clean Architecture feature structures

Extensions

StringCapitalization on String

Functions

addUseCaseToFeature(String featureName, String useCaseName) → void
Adds a new use case to an existing feature
createFeatureStructure(String featureName, {bool installDeps = false}) → void
Generates Clean Architecture folder structure for a feature
writeCubitCode(File file, String name) → void
Writes Cubit boilerplate code to a file
writeEmptyModelCode(File file, String featureName, String useCaseName) → void
Writes Empty Data Model code for a specific feature and use case name (without entity dependency)
writeEntityCode(File file, String featureName, String useCaseName) → void
Writes Domain Entity code for a specific feature and use case name
writeModelCode(File file, String featureName, String useCaseName) → void
Writes Data Model code for a specific feature and use case name
writeStateCode(File file, String name) → void
Writes BLoc states code to a file
writeUseCaseCode(File file, String featureName, String useCaseName) → void
Writes Use Case code for a specific feature and use case name
writeUseCaseCodeWithoutEntity(File file, String featureName, String useCaseName) → void
Writes Use Case code for a specific feature and use case name (without entity dependency)
writeUseCaseDataSourceCode(File file, String featureName, String useCaseName) → void
Writes Data Source code specifically for a use case
writeUseCaseDomainRepositoryCode(File file, String featureName, String useCaseName) → void
Writes Domain Repository Interface code specifically for a use case
writeUseCaseRepositoryCode(File file, String featureName, String useCaseName) → void
Writes Repository Implementation code specifically for a use case