Skip to content

Commit

Permalink
clean comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fogaiht committed Mar 4, 2021
1 parent d4b311c commit 3fd9727
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/src/util/util_brasil_fields.dart
Expand Up @@ -20,19 +20,7 @@ class UtilBrasilFields {

return value ?? 0;
}

// /// Retorna o CPF utilizando a máscara: `XXX.YYY.ZZZ-NN`
// static String obterCpf(String cpf) {
// assert(cpf.length == 11, 'CPF com tamanho inválido. Deve conter 11 caracteres');
// return '${cpf.substring(0, 3)}.${cpf.substring(3, 6)}.${cpf.substring(6, 9)}-${cpf.substring(9, 11)}';
// }

// /// Retorna o CNPJ informado, utilizando a máscara: `XX.YYY.ZZZ/NNNN-SS`
// static String obterCnpj(String cnpj) {
// assert(cnpj.length == 14, 'CNPJ com tamanho inválido. Deve conter 14 caracteres');
// return '${cnpj.substring(0, 2)}.${cnpj.substring(2, 5)}.${cnpj.substring(5, 8)}/${cnpj.substring(8, 12)}-${cnpj.substring(12, 14)}';
// }


/// Retorna o CEP utilizando a máscara: `XX.YYY-ZZZ`
static String obterCep(String cep, {bool ponto = true}) {
assert(cep.length == 8, 'CEP com tamanho inválido. Deve conter 8 caracteres');
Expand Down

0 comments on commit 3fd9727

Please sign in to comment.