Skip to content

Instantly share code, notes, and snippets.

@Hackathonwave
Last active August 23, 2023 15:00
Show Gist options
  • Save Hackathonwave/61c95d149c9fdf6b934e8a68d55f53d2 to your computer and use it in GitHub Desktop.
Save Hackathonwave/61c95d149c9fdf6b934e8a68d55f53d2 to your computer and use it in GitHub Desktop.
void main() {
List<String> myList = [
'Uforo Ekong',
'Wisdom Effiong',
'Simeon Moses',
'Endurance Blessed',
'Emem Edem',
];
//print(myList[3]);
// print(myList.indexOf('Simeon Moses'));
//myList.add('Abigail Essien');
myList.insert(2, 'Abigail Essien');
print(myList);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment