Skip to content

Instantly share code, notes, and snippets.

@chamithchathuka
Created July 20, 2021 06:44
Show Gist options
  • Select an option

  • Save chamithchathuka/68e3f64ac0be9bc540f326f466568e49 to your computer and use it in GitHub Desktop.

Select an option

Save chamithchathuka/68e3f64ac0be9bc540f326f466568e49 to your computer and use it in GitHub Desktop.
// 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