What is Dart?
Dart is a programming language that is optimized for building User Interface applications in the modern web environment. The idea behind Dart is to allow the development of apps for multi-platform targets.
Dart is defined to center the client at the core of the language. It brings high capabilities for devs during the development phase such as the hot reloading and also on the building process where there’s a wide variety of targets: web, mobile, and desktop.
Dart has a set of core libraries that developers can use to perform essential logic. Here is the list of core libraries provided by Dart:
- Built-in types and collections
- Files, HTTP and other I/O support for non-web applications
- HTML resources for (DOM) interaction.
- Encoders and decoders including JSON and UTF-8
- Mathematical constants, functions and randomness
- Support for asynchronous programming
- Fixed-sized data (i.e. unsigned 8-byte integers)
- Concurrent programming using isolation
- Additional collection types such as queues, linked lists, hashmaps and binary trees
Dart Platform Compilation
The compiler of an application built using Dart allows you to target multiple platforms. For native applications, Dart has two compiling options: Dart VM (Virtual Machine) with Just-In-Time (JIT) compilation or Ahead-Of-Time (AOT) compilation.
When targeting web applications, Dart also has two compilation options. For a development built it uses
dartdevc. For production compilation it uses
Dart is the base language for the popular framework Flutter.