Created
March 17, 2019 07:37
-
-
Save benznest/a5f21a7e6dc5c10a836d41db295e3556 to your computer and use it in GitHub Desktop.
=> Arrow 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
| class Astronaut{ | |
| bool isAlive () => true; | |
| } | |
| main(){ | |
| Astronaut astronaut = Astronaut(); | |
| print(astronaut.isAlive()); // true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment