Last active
April 14, 2018 09:18
-
-
Save lukas-h/b3c65d755e01bf79943d1ddc9496148b to your computer and use it in GitHub Desktop.
Cascade Notation in Dart
This file contains hidden or 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
querySelector('#confirm') | |
..text = 'Confirm' | |
..classes.add('important') | |
..onClick.listen((e) => window.alert('Confirmed!')); |
This file contains hidden or 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
var button = querySelector('#confirm'); | |
button | |
..text = 'Confirm' | |
..classes.add('important') | |
..onClick.listen((e) => window.alert('Confirmed!')); |
This file contains hidden or 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
var button = querySelector('#confirm'); | |
button.classes.add('important') | |
..onClick.listen((e) => window.alert('Confirmed!')); |
This file contains hidden or 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
var button = querySelector('#confirm'); | |
button.text = 'Confirm'; | |
button.classes.add('important'); | |
button.onClick.listen((e) => window.alert('Confirmed!')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment