validarNumeroDas static method
- String? numeroDas
Valida um número de DAS
Implementation
static String? validarNumeroDas(String? numeroDas) {
if (numeroDas == null || numeroDas.isEmpty) {
return 'Número do DAS é obrigatório';
}
if (numeroDas.length < 10 || numeroDas.length > 20) {
return 'Número do DAS deve ter entre 10 e 20 caracteres';
}
return null;
}