Created
          July 20, 2019 11:23 
        
      - 
      
 - 
        
Save mskasal/92260b8e505dd729d03a0cc356505bea to your computer and use it in GitHub Desktop.  
    Dart and Flutter learning - Medium
  
        
  
    
      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. | |
| printInteger(int aNumber) { | |
| print('The number is $aNumber.'); // Print to console. | |
| } | |
| // This is where the app starts executing. | |
| 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