Skip to content

Instantly share code, notes, and snippets.

@caadif
Last active June 21, 2022 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caadif/2b4fa561db05d695cdac386d94d74523 to your computer and use it in GitHub Desktop.
Save caadif/2b4fa561db05d695cdac386d94d74523 to your computer and use it in GitHub Desktop.
My List Code
void main() {
List<String>myList = [
'amina',
'farah',
'salah',
'omar',
];
// print(myList[3]); //number's name from the list
//print(myList.indexOf('salah')); // name's number from the list
myList.add('hassan'); // add new name to your from the list
print(myList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment