Last active
June 21, 2022 03:37
-
-
Save caadif/2b4fa561db05d695cdac386d94d74523 to your computer and use it in GitHub Desktop.
My List Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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