The Dart language is at the core of the Flutter framework. A modern framework such as Flutter requires a high-level modern language so that it can provide the best experience to the developer.
Dart is an open-source general-purpose programming language. It was originally developed by Google. Dart is an object-oriented language with C-style syntax. It supports programming concepts like interfaces, classes, unlike other programming languages Dart doesn’t support arrays.
Dart collections can be used to replicate data structures such as arrays, generics, and optional typing.
The following code shows a simple Dart program
void main() { print('Hello, World!'); } |
Every Dart application contains main() functions, from here code will execute.
To understand where the language's flexibility came from, we need to know how we can run Dart code. This is done in two ways, as outlined here:
Dart code can be run in a Dart-capable environment. A Dart-capable environment provides essential features to an application, such as the following:
In The comming sections we will be learn the topics: