Introduction To DART
Introduction To DART
Introduction To DART
Introduction to DART
• Flutter Works on Dart
• Programming Language Originally Developed
by Google
• Object Oriented (like C++ and Java)
• Class defined language using a C Style Syntax
• Faster, Smoother, Pretty efficient to be used
for developing applications websites and
server side applications
What makes Dart Versatile
• It compiles in its own format,
• But also compiles into Java Script which is
readable by most devices
• Can be used to make Cross-platform
applications, web applications using Angular
Dart and Command Line applications or server
side applications.
DART is not JUST language
• It Includes
– Libraries
– Tools
– VM
– Compiler to Java Script
– Dart SDK (written mostly in Dart)
– Dart VM is critical part of SDK
Dart Libraries
• Dart:Core
– Provide critical functionality by Dart
– It becomes part of every Dart program automatically
– Includes numbers,collections and strings
• Dart:Async
– Provides Asynchronous Programming
– Generally Uses Callback Functions.
– Alternative to Callback Functions is Future and
Streams
Dart Libraries
• Dart:Math
– Provide common mathematical and trigonometric
Functions
– Such as Sine Cosine , Maximum and Minimum
– Constant Such as Pi, exponentials
• Dart: Convert
– Has Converters for JSON and UTF-8 format Data
– Support for creating additional customized
converters.
Dart Libraries
• Dart:io
– Provides APIs to deal with files, directories,
processes, sockets, Web Sockets, and HTTP clients
and Servers,
• Dart:HTML
– Enables programming for browsers
– Allow manipulations of objects and elements in
DOM and gives access to HTML5 APIs.
Dart Libraries
• Dart:UI
– Exposes the lowest-level services that flutters
framework use to bootstrap applications, such as
classes for driving the input, graphics text, layout
and rending subsystems.
•
Dart Tools
• Package system
• Simple Syntax
• Semantics and Proper Behavior
– No undefined data
– E.g an index out range error for an array is displayed
comprehensibly, proper use of this pointer
•
•Lets Install Dart.
Install VS Code
• https://code.visualstudio.com
• Installing Dart SDK
–Dartlang.org
•Dart.dev
–https://dart.dev/get-dart