0% found this document useful (0 votes)
59 views7 pages

UNIT-3 Working With DART

The document discusses Dart programming language including its features like being object-oriented, open source, platform independent, supporting concurrency, having extensive libraries, and being easy to learn. It also explains the steps to install Dart SDK on Windows.

Uploaded by

rupeshpawar0086
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views7 pages

UNIT-3 Working With DART

The document discusses Dart programming language including its features like being object-oriented, open source, platform independent, supporting concurrency, having extensive libraries, and being easy to learn. It also explains the steps to install Dart SDK on Windows.

Uploaded by

rupeshpawar0086
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

MOBILE APPLICATION DEVELOPMENT - 3

UNIT – 3 : Working With DART


1. What is DART Programming Language?
Dart is an open-source general-purpose programming language. It is originally developed
by Google and later approved as a standard by ECMA. Dart is a new programming
language meant for the server as well as the browser. Introduced by Google, the Dart
SDK ships with its compiler – the Dart VM. The SDK also includes a utility -dart2js, a
transpiler that generates JavaScript equivalent of a Dart Script. This tutorial provides a
basic level understanding of the Dart programming language.

In other words, 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 an object-oriented, class-based, garbage-collected language with C-
style syntax. Dart can compile to either native code or JavaScript. It supports interfaces,
mixins, abstract classes, reified generics, and type inference.

2. Explain Features of DART


The Dart is an object-oriented, open-source programming language which contains many
useful features. It is the new programming language and supports an extensive range of
programming utilities such as interface, collections, classes, dynamic and optional typing.
It is developed for the server as well as the browser. Below is the list of the important Dart
features.

PREPARED BY: MR. SHASHANK JOSHI --1—


MOBILE APPLICATION DEVELOPMENT - 3
Open Source

Dart is an open-source programming language, which means it is freely available. It is


developed by Google, approved by the ECMA standard, and comes with a BSD license.

Platform Independent

Dart supports all primary operating systems such as Windows, Linux, Macintosh, etc.
The Dart has its own Virtual Machine which known as Dart VM, that allows us to run the
Dart code in every operating system.

Object-Oriented

Dart is an object-oriented programming language and supports all oops concepts such as
classes, inheritance, interfaces and optional typing features. It also supports advance
concepts like mixin, abstract, classes, reified generic, and robust type system.

Concurrency

Dart is an asynchronous programming language, which means it supports multithreading


using Isolates. The isolates are the independent entities that are related to threads but
don't share memory and establish the communication between the processes by the
message passing. The message should be serialized to make effective communication.
The serialization of the message is done by using a snapshot that is generated by the
given object and then transmits to another isolate for desterilizing.

Extensive Libraries

Dart consists of many useful inbuilt libraries including SDK (Software Development
Kit), core, math, async, math, convert, html, IO, etc. It also provides the facility to
organize the Dart code into libraries with proper namespacing. It can reuse by the import
statement.

Easy to learn

As we discussed in the previous section, learning the Dart is not the Hercules task as we
know that Dart's syntax is similar to Java, C#, JavaScript, kotlin, etc. if you know any of
these languages then you can learn easily the Dart.

Flexible Compilation

Dart provides the flexibility to compile the code and fast as well. It supports two types
of compilation processes, AOT (Ahead of Time) and JIT (Just-in-Time). The Dart code
is transmitted in the other language that can run in the modern web-brewers.

PREPARED BY: MR. SHASHANK JOSHI --2—


MOBILE APPLICATION DEVELOPMENT - 3
Type Safe

The Dart is the type safe language, which means it uses both static type checking and
runtime checks to confirm that a variable's value always matches the variable's static
type, sometimes it known as the sound typing.

Although types are required, type annotations are optional because of type interference.
This makes it code more readable. The other advantage to being type-safe language is,
when we change the part of code, the system warns us about that modification that we
have modified earlier.

Objects

The Dart treats everything as an object. The value which assigns to the variable is an
object. The functions, numbers, and strings are also an object in Dart. All objects inherit
from Object class.

Browser Support

The Dart supports all modern web-browser. It comes with the dart2js compiler that
converts the Dart code into optimized JavaScript code that is suitable for all type of web-
browser.

Community

Dart has a large community across the world. So if you face problem while coding then
it is easy to find help. The dedicated developers' team is working towards enhancing its
functionality.

Here we have discussed essential features of the Dart language. We will more concepts
of Dart language in upcoming tutorials.

3. Steps to Installation of DART


Follow the below instructions to install Dark SDK in Windows.

Step -1: Go to the browser and type the following link to download the SDK.

http://www.gekorm.com/dart-windows/

It will open the given page. Click on the following link.

PREPARED BY: MR. SHASHANK JOSHI --3—


MOBILE APPLICATION DEVELOPMENT - 3

Step - 2: Run the Dart installer (It is the .exe file that we downloaded in the previous
step) and click on the Next button.

PREPARED BY: MR. SHASHANK JOSHI --4—


MOBILE APPLICATION DEVELOPMENT - 3
Step - 3: It provides the option to select the Dart installation path. After the path is
selected, click on the Next button.

PREPARED BY: MR. SHASHANK JOSHI --5—


MOBILE APPLICATION DEVELOPMENT - 3
Step - 4: After the download is completed, set the PATH environment variable to
"C:\Program Files\Dart\dart-sdk\bin" in advance system properties.

PREPARED BY: MR. SHASHANK JOSHI --6—


MOBILE APPLICATION DEVELOPMENT - 3
Step - 5: Now open the terminal and verify the Dart installation by typing dart in
command prompt.

If it is successfully installed then it looks like the above image.

PREPARED BY: MR. SHASHANK JOSHI --7—

You might also like