GenerateFeature constructor
GenerateFeature({
- required String name,
- required String folder,
- GenerateFeatureType type = GenerateFeatureType.screen,
- bool createRoute = true,
Implementation
GenerateFeature({
required this.name,
required this.folder,
this.type = GenerateFeatureType.screen,
this.createRoute = true,
}) {
if (type == GenerateFeatureType.page) {
_structureFolder = GenerateFeatureConstants.structureFolderPage;
} else {
_structureFolder = GenerateFeatureConstants.structureFolderScreen;
}
}