Skip to content

Instantly share code, notes, and snippets.

@DDOrozco17
Created February 8, 2024 20:30
Show Gist options
  • Save DDOrozco17/6e776b82457116193421ba4ecffe171e to your computer and use it in GitHub Desktop.
Save DDOrozco17/6e776b82457116193421ba4ecffe171e to your computer and use it in GitHub Desktop.
ejemplos de lista dart
void main() {
List<String> misNovias = [
"Intriga1",
"Intriga2",
"Intriga3",
"Intriga4",
"Intriga5"
];
// Finding Length of List
print("Estas son mis novias $misNovias");
print("Esa no se nombra es ${misNovias[0]}"); // index 0
print("Contacto cero es ${misNovias[1]}"); // index 1
print("El amor de mi vida es ${misNovias[2]}"); // index 2
print("La de repuesto es ${misNovias[3]}"); // index 3
print("La por si acaso es ${misNovias[4]}"); // index 4
int length = misNovias.length;
print("Lista de chufulas es $length");
}
@DDOrozco17
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment