Created
April 20, 2020 22:13
-
-
Save kharioki/93ecd9b1222361fa5296db7bce8e4614 to your computer and use it in GitHub Desktop.
Flutter Lists
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
| import 'dart:math'; | |
| void main() { | |
| List<String> myList = [ | |
| 'Angela', | |
| 'Tony', | |
| 'June', | |
| 'Tessie' | |
| ]; | |
| // print(myList[2]); | |
| // print(myList.indexOf('Tessie')); | |
| // myList.add('Rose'); | |
| // myList.insert(2, 'Patrick'); | |
| print(myList); | |
| print(myList.first); | |
| print(myList.last); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment