validarTributo static method
- String? tributo
Valida se o tributo está preenchido
Implementation
static String? validarTributo(String? tributo) {
if (tributo == null || tributo.isEmpty) {
return 'Tributo é obrigatório';
}
if (tributo.length < 2) {
return 'Tributo deve ter pelo menos 2 caracteres';
}
return null;
}