Skip to content

Instantly share code, notes, and snippets.

@marbaque
Forked from angelabauer/list.dart
Last active March 18, 2020 14:28
Show Gist options
  • Save marbaque/b0b6211fff176d0ba99ad1130444846a to your computer and use it in GitHub Desktop.
Save marbaque/b0b6211fff176d0ba99ad1130444846a to your computer and use it in GitHub Desktop.
void main() {
List<String> myList = [
'Angela',
'James',
'Katie',
'Jack',
];
//print(myList[2]);
//print(myList.indexOf('Katie'));
//myList.add('Mario');
myList.insert(2, 'Mario');
print(myList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment