Skip to main content

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 πŸ“”