Welcome to the Dart Complete Course repository! π This repository provides a structured learning path for mastering Dart programming language, covering fundamental concepts, hands-on projects, and advanced topics.
Using Chocolatey (Windows Package Manager):
- Open PowerShell as Administrator (Win + X β Select PowerShell as Administrator).
- Run the following command to install Dart SDK:
choco install dart-sdk
- Set the Environment Variable for the SDK bin:
- Open System Variables (Search
ENV
in Windows Search). - Navigate to Path and click New.
- Enter the path to the SDK bin:
C:\tools\dart-sdk\bin
. - Click OK.
- Open System Variables (Search
- Verify installation by running:
If the output is similar to:
dart --version
Then, the installation was successful! πDart SDK version: 3.6.1 (stable) (Tue Jan 7 09:50:00 2025 -0800) on "windows_x64"
choco upgrade dart-sdk
Dart is a client-optimized programming language developed by Google for building mobile, desktop, web, and server applications. It is:
- Object-oriented
- Class-based
- Garbage collected
- C-style syntax
- Compiles to native code or JavaScript
Every Dart program starts execution from the main
function:
void main() {
print("Hello, World!");
}
Dart supports both single-line and multi-line comments:
- Single-line comment:
// This is a comment
- Multi-line comment:
/* This is a multi-line comment */
This course covers the following topics:
No. | Topic | Description |
---|---|---|
01 | Variables | Learn about Dart variables and data types. |
02 | Operators | Understand different operators in Dart. |
03 | Conditional Expressions | Explore conditional expressions and decision-making. |
04 | String | String methods and properties in Dart. |
05 | IO (Input/Output) | Handling user input and output in Dart. |
06 | Hands-on Practice | Practical projects (e.g., Temperature Converter). |
07 | Lists | Properties & methods of lists in Dart. |
08 | Sets | Working with sets, including adding/removing elements. |
09 | Map | Introduction to maps and their functionalities. |
10 | Control Flow Statements | Loops, conditions, and skipping logic. |
11 | Functions | Understanding functions, parameters, and return types. |
Command | Purpose |
---|---|
dart --version |
Check Dart version |
dart run filename.dart |
Run a Dart script |
dart compile exe filename.dart |
Compile Dart to EXE |
main.exe |
Run the compiled executable |
Contributions are welcome! Feel free to fork this repo, create pull requests, or suggest improvements.
Happy coding! π―