gerarEnderecoAleatorio static method
Implementation
static Future<Endereco> gerarEnderecoAleatorio() async {
return Endereco(
cep: randomInt(0, 99999999).fixedLength(8)!,
logradouro: "${["Rua", "Avenida", "Alameda", "Travessa", "Praça"].randomize().first} ${gerarNomeAleatorioString()}",
numero: randomInt(0, 999).toString(),
bairro: "${["Jardim", "Campos", ""].randomize().first} ${gerarNomeAleatorioString()}".trim(),
cidade: await cidades.then((c) => c.randomize().first),
);
}