Skip to content

Instantly share code, notes, and snippets.

@muchirijane
Created September 16, 2019 08:26
Show Gist options
  • Save muchirijane/73d04d669cea21e88f7700fc7e894252 to your computer and use it in GitHub Desktop.
Save muchirijane/73d04d669cea21e88f7700fc7e894252 to your computer and use it in GitHub Desktop.
void main() {
List<String> myList = [
'Charles',
'James',
'Bella',
'Jack',
];
//print(myList[3]);
//print(myList.indexOf('Jack'));
myList.add('Jane');
myList.insert(3 , 'John');
//print(myList[3]);
//print(myList.first);
//print(myList.last);
//print(myList.length);
myList.removeAt(3);
print(myList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment