Skip to content
BENIBIX Learn

Dart

Development🔤 LanguagesPopular Languages

The language behind Flutter. Flutter builds phone apps for both stores from one set of code.

Think of it like

Think of it like one recipe. The cook makes it for a cafe and for a food truck.

Example

Google makes both Dart and Flutter. A start-up in Toronto builds its delivery app once and ships it to both app stores.

Why it matters

Writing one app instead of two saves a small team a lot of time and money.

Definition

Dart is the language of Flutter. Flutter lets one set of code build apps for both iPhone and Android, and for the web too. Dart looks familiar to anyone who knows Java or JavaScript. While you work, it can reload the app in about a second after each change. For release, it is compiled to fast machine code.

Example code

dart
void main() {
  print('Hello, world!');
}
A Dart program starts in main, much like C or Java.

Common mistake

Thinking Dart is only for Flutter. It can run servers and scripts too, though few people use it that way.

Key takeaways

  1. 1
    Flutter's language. Most people meet Dart through Flutter.
  2. 2
    One codebase. Build for phones and the web together.
  3. 3
    Quick reload. See each change in the app fast.

Learn it properly