What is dart ?

Dart is a modern, object-oriented programming language developed by Google. It was first introduced in 2011 and has gained popularity among developers due to its simplicity, performance, and versatility.

Dart is primarily used for building mobile, web, and desktop applications, with its main focus being on the Flutter framework.

Your are familiar with dart ? Check your understanding

Dart Native (Machine code JIT and AOT)

During development, we want our changes to be reflected just after we change something. This will contribute to faster development cycle. Dart Virtual Machine (Dart VM) offers just-in-time compliler(JIT) which makes the hot reload, dart devtools and debugging support easier.

In production, we want our apps to be faster. When apps are ready to be deployed - either its a flutter app or dart backend, Dart ahead-of-time(AOT) complies to native machine code (ARM or x64). The AOT complied app has high consistency, speed and short startup time.

To sum up, JIT makes the debugging and development easier and AOT makes the deployed apps faster which gives the dart and flutter developer a superpower to develop faster and delopy faster apps.

Why Flutter Uses Dart

Flutter, a popular cross-platform UI toolkit, uses Dart as its programming language. Dart’s performance, hot-reload feature, and ease of use make it an ideal choice for building beautiful and responsive user interfaces. With Flutter, developers can write code once and deploy it on multiple platforms, including iOS, Android, web, and desktop.

Other Uses of Dart

While Flutter is the most well-known use case for Dart, the language itself can be used for a variety of other purposes. Dart can be used to build :

  • server-side applications,
  • command-line tools,
  • Internet of Things (IoT) devices.

Its versatility and ability to run on different platforms make it a powerful tool for developers across various domains.

In this module we will learn,

Quiz

Check your understanding with the question we have hand crafted just for you.