Overview π―
Dart is a client-optimized language for developing fast apps on any platform. Its goal is to offer the most productive programming language for multi-platform development, paired with a flexible execution runtime platform for app frameworks.
Languages are defined by their technical envelopeβthe choices made during development that shape the capabilities and strengths of a language. Dart is designed for a technical envelope that is particularly suited to client development, prioritizing both development (sub-second stateful hot reload) and high-quality production experiences across a wide variety of compilation targets (web, mobile, and desktop).
Dart also forms the foundation of Flutter. Dart provides the language and runtimes that power Flutter apps, but Dart also supports many core developer tasks like formatting, analyzing, and testing code.
Why Should You Learn Dart?
- Free and open source.
- To be comfortable in a flutter.
- To develop multi-platform apps for android, iOS, windows, mac, Linux, etc.
- Fastest growing programming language.
- Huge community support.
Quick Start πβ
Prerequisites πβ
In order to use Dart SDK you must have the Computer and Internet.
info
In this example requires Dart ">=2.17.5 <3.0.0"
Installing π§βπ»β
# π¦ Install the Dart SDK
brew tap dart-lang/dart
brew install dart
Creating a Project β¨β
Use the dart create
command and the console template to create a command-line app.
# π Create a new project called "my_project"
dart create -t console my_project
Run Application πβ
Next, open the newly created project and start application via:
# π Start run the application
cd my_project
dart bin/main.dart
Run online
Include Topic β¨β
β Hot Reload β‘οΈ
β Dart Dev Tools βοΈ
β Important concepts βοΈ
β Keywords π
β Variable π
β Built-in Types π
β Functions πͺ
β Operators π
β Control flow statements π
β Exceptions π
β Classes π·ββοΈ
β Generics π³
β Asynchrony (Future & await) π
β Package / Library π
π§ More about Dart SDK π