Dart is a programming language designed for client development, such as for the web and mobile apps. It is developed by Google and can also be used to build server and desktop applications. 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.
It can compile to either machine code or JavaScript, and supports interfaces, mixins, abstract classes, reified generics and type inference.
There are four ways to run Dart code:
- Web
- To run in mainstream web browsers relies on a source-to-source compiler to JavaScript.
- Stand-alone
- The software development kit ships with a stand-alone , allowing code to run in a command-line interface environment.
- Ahead-of-time compiled
- Apps built with Flutter, a mobile app SDK built with Dart, are deployed to app stores as AOT-compiled code.
- Native
- Dart 2.6 includes the dart2native compiler to compile to self-contained, native executable code. this feature exposed this capability only on iOS and Android mobile devices via Flutter.
-
Mature and complete async-await for user interfaces containing event-driven code, paired with isolate-based concurrency
-
A programming language optimized for building user interfaces with features such as sound null safety, the spread operator for expanding collections, and collection if for customizing UI for each platform
-
A programming language that is easy to learn, with a familiar syntax