modeloFactoryValidation function
Implementation
String modeloFactoryValidation(String nomeClasse) {
String conteudo = '''
import '../../../../presentation/protocols/protocols.dart';
import '../../../../presentation/validation/protocols/protocols.dart';
import '../../../builders/builders.dart';
import '../../../composites/composites.dart';
Validation make${nomeClasse}Validation() => ValidationComposite(
make${nomeClasse}Validations(),
);
List<FieldValidation> make${nomeClasse}Validations() => [
...ValidationBuilder.field('$nomeClasse').required().build(),
];
''';
return conteudo;
}