Dart
Dart
A R I H A R A S U D H A N
THIS BOOK
This book is written (typed) by
Ari, who hails from the South
and has keen interests in
Computer Science, Biology,
and Tamil Literature.
Occasionally, he updates his
website, where you can reach
out to him.
https://arihara-sudhan.github.io
WHAT IS DART?
Dart is a programming
language from Google. It is
optimized for building fast
apps on multiple platforms,
including web, mobile, and
desktop. Dart is the
foundation for Flutter, a
popular framework for
developing cross-platform
mobile applications. It is an
object-oriented, class-based
language with C-style syntax.
It is designed for client-side
development, enabling fast,
efficient, and scalable apps.
We can use it for web
development, mobile apps
(with Flutter), desktop apps,
command-line tools, and even
for server-side development.
Dart compiles to native
machine code, which
improves performance,
particularly on mobile devices.
For fast development cycles,
Dart supports hot reload,
allowing us to instantly view
changes. Dart comes with
libraries for collections, async
programming, file handling
and more. That’s all I know of
Dart. Snails have a dart. Dyk?
INSTALLING DART
String: Sequence of
characters enclosed in single
or double quotes.
Boolean: Represents true or
false values (bool type).
Relational
Logical
Assignment
4. String Interpolation
We can embed expressions
inside string literals using $
{expression} or just
$variableName if it's a single
variable.
5. Null Safety
Dart ensures null safety, which
means non-nullable variables
cannot hold null values.
6. Collections
Dart has built-in support for
list, set, and map collections.
Ternary
Switch Case
For Loop
For-in Loop
While Loop
Do While Loop