Created
August 7, 2021 01:56
-
-
Save AkaashSaini/d768f4affc3a8847f53a301f8ccd4841 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = [ | |
'Akash', | |
'James', | |
'Katie', | |
'Jack', | |
]; | |
print(myList[0]); | |
print(myList.length); | |
print(myList.indexOf('James')); | |
myList.add('Rahul'); | |
print(myList); | |
myList.insert(0,'ben'); | |
print(myList); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment