Skip to content

Instantly share code, notes, and snippets.

@felipecastrosales
Created November 9, 2021 02:31
Show Gist options
  • Save felipecastrosales/82c00bf2a28e5d37780449509a6f4910 to your computer and use it in GitHub Desktop.
Save felipecastrosales/82c00bf2a28e5d37780449509a6f4910 to your computer and use it in GitHub Desktop.
Listas Introdução
void main() {
// 1. Apresentar
List lista1 = [7, 'Felipe', true];
var lista2 = [7, 'Felipe', true];
print(lista1);
print(lista2);
// 2. Inferindo tipos
List<String> nomes = ['Felipe', 'Paulo', 'Guilherme'];
List<int> numeros = [7, 1, 8];
print(nomes);
print(numeros);
// 3. Array e Index
print(nomes[0]);
print(nomes[1]);
print(nomes[2]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment