Skip to content

Instantly share code, notes, and snippets.

@s0nerik
Created May 13, 2020 14:13
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 s0nerik/498a0facccc28dfafba5878981105d38 to your computer and use it in GitHub Desktop.
Save s0nerik/498a0facccc28dfafba5878981105d38 to your computer and use it in GitHub Desktop.
Dart const List
main() {
final list1 = const <int>[];
final list2 = const <int>[];
print(identical(list1, list2));
list1.add(666);
print(list1[0]);
print(list2[0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment