Skip to content

Instantly share code, notes, and snippets.

@e200
Last active September 25, 2020 20:30
Show Gist options
  • Save e200/2b13588ba3bcfedcec3e336cbe85b9c2 to your computer and use it in GitHub Desktop.
Save e200/2b13588ba3bcfedcec3e336cbe85b9c2 to your computer and use it in GitHub Desktop.
Dart Cascade Notation
main() {
final _numbers = List<int>()
..add(1)
..add(2)
..add(3);
print(_numbers);
}
/****************************
final _numbers = List<int>();
_numbers.add(1);
_numbers.add(2);
_numbers.add(3);
*****************************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment