Skip to content

Instantly share code, notes, and snippets.

@umair13adil
Created January 18, 2020 12:07
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 umair13adil/ff4c1905783fc7c52521477cf48c4af1 to your computer and use it in GitHub Desktop.
Save umair13adil/ff4c1905783fc7c52521477cf48c4af1 to your computer and use it in GitHub Desktop.
void main() {
List my_list = ["s1","s2","s3","s4"];
//Size 4
var my_element1 = my_list[3];
print(my_element1);
List my_list2 = List();
//Dynamic List
print(my_list2);
my_list2.add(1);
my_list2.add(2);
my_list2.add(3);
my_list2.add(4);
print(my_list2);
print("Is my list empty? ${my_list2.isEmpty}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment