Created
July 20, 2021 06:44
-
-
Save chamithchathuka/68e3f64ac0be9bc540f326f466568e49 to your computer and use it in GitHub Desktop.
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
| // Define a function. | |
| void printInteger(int aNumber) { | |
| print('The number is $aNumber.'); // Print to console. | |
| } | |
| // This is where the app starts executing. | |
| void main() { | |
| var number = 42; // Declare and initialize a variable. | |
| printInteger(number); // Call a function. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment