GenerateFeature constructor

GenerateFeature({
  1. required String name,
  2. required String folder,
  3. GenerateFeatureType type = GenerateFeatureType.screen,
  4. 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;
  }
}