Last active
September 25, 2020 20:30
-
-
Save e200/2b13588ba3bcfedcec3e336cbe85b9c2 to your computer and use it in GitHub Desktop.
Dart Cascade Notation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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