Last active
February 8, 2020 08:55
-
-
Save angwandi/bc4340174b91ca2c3a13158e5f69f038 to your computer and use it in GitHub Desktop.
Learning List in Dart
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(){ | |
//craete a list of String | |
List<String> myList=[ | |
'Innocent', | |
'Dema' | |
]; | |
// manupilate the list | |
// print(myList); | |
// print(myList.indexOf('Dema')); | |
// myList.add('Angwandia'); | |
// print(myList); | |
myList.insert(1,'Lareen'); | |
print(myList); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment