Introduction to Dart


Dart is a client-optimized, object-oriented, modern programming language to build apps fast for many platforms like android, iOS, web desktop, etc. Client optimized means optimized for crafting a beautiful user interface and high-quality experiences. Google developed dart as a programming language.

Currently, dart is one of the most preferred languages to learn. A solid understanding of dart is necessary to develop high-quality apps with flutter. According to Github, Dart is one of the most loved programming language in the world.

If you know languages like C, Java, C#, Javascript, etc. dart will be easy for you. If you haven’t, don’t worry, this tutorial covers dart from basic to advance.


Note: The concept you will learn here gives you solid understanding of dart and improve your coding career.

Features Of Dart

  • It is free and open-source.
  • It is an object-oriented programming language.
  • It can be used to develop android, iOS, web, desktop app fast.
  • It can compile to either native code or javascript.
  • It is used by flutter to build cross-platform apps.
  • It offers modern programming features like null safety, asynchronous programming.
  • You can even use dart for servers and backend.

Difference Between Dart & Flutter

  • Dart is client optimized, an object-oriented programming language. It is popular nowadays because of flutter. It is difficult to build complete apps only using dart because you have to manage many stuff yourself.

  • Flutter is a framework that uses dart programming language. With the help of flutter, you can build apps for android, iOS, web, desktop, etc. The framework contains ready-made tools to make apps faster.

Which Is The Best Code Editor For Dart Programming

The best code editor is VS Code if you want to run the dart program from a computer or laptop. You can download the dart extension from VS Code and start coding. You will learn more about installing dart in the next topic. You can also use DartPad to run simple dart programs without installing anything.

History of Dart

  • Dart programming was unveiled on October 10, 2011, as an alternative to javascript.
  • Dart 1.0 was released on November 14, 2013.
  • Dart 2.0 was released in August 2018.
  • Dart gained popularity in recent days because of flutter.

Basic Programming Terms

Important words that you often hear while learning programming languages.

Statements: A statement is command that tells a computer to do something. In dart, you can end most of the statements with semicolon ;.

Expressions: An Expression is a value, or something that can be calculated as a value. Expression can be numbers, text or some other type. For E.g.

a. 52
b. 5+5
c. 'Hello World'
d. num

Keywords: Keywords are reserved words that gives special meaning to the dart compiler. For E.g. int, if, var, String, const, etc.

Identifiers: Identifiers are names, created by the programmer to define variables, functions, classes, etc. Identifiers shouldn’t be keywords and must have a unique name. For E.g. int age =19;, here age is an identifier. You will learn more about identifiers later in this course.

High-Level Programming Language: High-Level Programming Language is easy to learn, user-friendly, and uses English-like-sentence. For E.g. dart,c,java,etc.

Low-Level Programming Language: Low-level programming language is hard to learn, non-user friendly, and deals with computer hardware components. For E.g. machine and assembly language.


Note: Low-level languages are faster than high-level languages but hard to understand and debug.

Compiler: Compiler is a computer program that translates the high-level programming language into machine level language.

Syntax: Syntax is a pattern or rules of a programming language that gives the concept to code.

Key Points To Remember

  • Dart is a free and open-source programming language. You don’t need to pay any money to run dart programs.
  • Dart is a platform-independent language and supports almost every operating system such as windows, mac, and Linux.
  • Dart is an object-oriented programming language and supports all oops features such as encapsulation, inheritance, polymorphism, interface, etc.
  • Dart comes with a dart2js compiler which translates dart code to javascript code that runs on all modern browsers.
  • Dart is a programming language used by flutter, the world’s most popular framework for building apps.