A repository containing the examples from the worksheet and lecture.
lect16.dart- Code from the lecture.pract16.dart- Code from the worksheet.main.dart- A simple command-line program that prints the name and the age of the user passed to it as a command-line argument.README.md- This file..gitignore- A file telling git to ignore certain files. You do not need to worry about this file for now.
Navigate to the directory containing the code with the cd command, for example:
cd ~/Documents/programming/week-16-dart-codeThen, run the code with the dart command, for example:
dart pract16.dartRun the main.dart file with two command-line arguments, for example:
dart main.dart "Molly Millions" 21Analyze the code with the dart analyze command, for example:
dart analyze pract16.dartFix the automatically detected issues with the dart fix command, for example:
dart fix pract16.dart