Skip to content

Instantly share code, notes, and snippets.

@angwandi
Last active February 8, 2020 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angwandi/bc4340174b91ca2c3a13158e5f69f038 to your computer and use it in GitHub Desktop.
Save angwandi/bc4340174b91ca2c3a13158e5f69f038 to your computer and use it in GitHub Desktop.
Learning List in Dart
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