What is a dart?

What is a dart?

In this article, we will learn about what dart is and the different features that dart language supports.

Hey, I'm Bhoomit Patel and in this series, I'll share about basics of dart and the concepts which are commonly used in flutter apps that all the developers should know. If you already know the fundamentals of a dart, you can skip this series and move to the next series, which is "Building the first app with flutter".

In this article, we will learn about what is a dart and the different features that dart supports.

What is a dart?

Dart is a general-purpose object-oriented programming language. Syntactically it is very similar to java and c#. And why everyone wants to learn, because Dart is the official language for the flutter. Dart can be used for mobile, web, desktop, and server-side applications. If you have a flutter project, The same project can be executed on the web, desktop, android, and iOS.

Dart features:

1. Object-oriented

Dart is a completely object-oriented programming language. It supports all the features like class, object, interface, inheritance, polymorphism, encapsulation, etc...

2. Multiplatform deployment

Dart projects can be run over a variety of platforms such as web, desktop, android, and ios.

3. Asynchronous programming

If you are from a java background then you heard about multi-threading. unfortunately, dart doesn't support multi-threading it's a single-threaded language. Instead of multi-threading dart support asynchronous programming. In the upcoming article, I'll share more about an async, feature, and await. For now, just understand that by using asynchronous you can perform multi-task without blocking UI.

4. Extensive libraries

When you install dart SDK or flutter SDK, you will get many built-in libraries and also you can add more from the huge set of libraries from pub.dev.

5. Platform independent

Dart is available on all platforms windows, Linux and mac.

6. Type safety and null safety

In dart, the value you assign to a variable must match the type of variable. And in null safety, there is a concept to avoid getting a null value in the variable. We will discuss this topic in more detail in upcoming articles.

7. Easy to learn

Dart is very easy to learn if you are new to programming or you are an expert, it is not difficult for you to learn dart.

Too much theory...I don't prefer it, but trust me It will help you in the future. don't worry, you will soon write your first app with flutter.