SlideShare a Scribd company logo
Dart Essentials
Vaibhav Bhapkar
@vaibhavbhapkar
-Power of
flutter
What is Dart?
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.
Relation between Dart and
Flutter:
Dart is the programming language used to code Flutter apps.
Flutter is a framework.
A framework is a tool that provides ready-made components
or solutions that are customized in order to speed up
development.
Let’s Go…
Bohot hogya theory ab code karte hai
https://dartpad.dev/
How to become a Dart
programmer?
Hello World
Comments:
Comments can be used to explain Dart code, and to make it
more readable.
One line
// This is a normal, one-line comment.
Multi line
/* Comments like these are also supported. */
v
Variables
Variables are containers for storing data values.
SYNTAX: var variableName = value
v
Data Types
String
var name = 'name';
int, double, num
var year = 1977;
Booleans
var x = false;
v
Data Types
List
var flybyObjects = ['Jupiter', 'Saturn', 'Uranus', 'Neptune'];
map
var identifier = { key1:value1, key2:value2
[,…..,key_n:value_n] }
Conditional Statements:
●Use if to specify a block of code to be executed, if a specified
condition is true
●Use else to specify a block of code to be executed, if the same
condition is false
●Use else if to specify a new condition to test, if the first
condition is false
Operators in Dart:
The operators are special symbols that are used to carry out
certain operations on the operands.
● Arithmetic Operators : + , - , * , / , ~/ , %
● Assignment Operators : =, ??=
● Relational Operators : ==, > , < , >= , <=, !=
● Logical Operators : && , || , !
Conditional Statements:
if ( condition1 ){
// body of if
}
else if ( condition2 ){
// body of if
}
else {
// statement
}
Loops:
Looping statement in Dart or any other programming
language is used to repeat a certain set of commands until
certain conditions are not completed.
● for loop
● while loop
● do-while loop
for (int i = 0; i < 5; i++) {
print('Flutter');
}
while(condition){
text expression;
}
while loop
Loops:
do{
text expression;
}while(condition);
For loop
Do while loop
Function:
Functions are the building blocks of readable, maintainable, and
reusable code.
A function is a set of statements to perform a specific task.
Functions organize the program into logical blocks of code.
Function:
int add(int a, int b){
int result = a + b;
return result;
}
void main(){
var output = add(10, 20);
print(output);
}
Break
Dart – Object Oriented Programming:
In object-oriented programming, a class is a blueprint for
creating objects, providing initial values for state, and
implementations of behavior.
Class
An Object is an identifiable entity with some characteristics
and behaviour.
An Object is an instance of a Class.
Objects
Dart
class class_name {
// Body of class
}
Dart
class gdsc{
var name;
void func(){
print("Welcome to Flutter Festival $name");
}
}
void main()
{
gdsc member = new gdsc();
member.name = "kunal";
member.func();
}
Thank You!

More Related Content

What's hot

Java IO Package and Streams
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streams
babak danyal
 
Building beautiful apps with Google flutter
Building beautiful apps with Google flutterBuilding beautiful apps with Google flutter
Building beautiful apps with Google flutter
Ahmed Abu Eldahab
 
Golang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageGolang - Overview of Go (golang) Language
Golang - Overview of Go (golang) Language
Aniruddha Chakrabarti
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
Niloy Saha
 
Javascript
JavascriptJavascript
Javascript
Manav Prasad
 
PHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and requirePHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and require
TheCreativedev Blog
 
Functions in javascript
Functions in javascriptFunctions in javascript
Dart ppt
Dart pptDart ppt
Dart ppt
Krishna Teja
 
Dart workshop
Dart workshopDart workshop
Dart workshop
Vishnu Suresh
 
Loops and conditional statements
Loops and conditional statementsLoops and conditional statements
Loops and conditional statements
Saad Sheikh
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Elizabeth alexander
 
Statements and Conditions in PHP
Statements and Conditions in PHPStatements and Conditions in PHP
Statements and Conditions in PHP
Maruf Abdullah (Rion)
 
Java Script ppt
Java Script pptJava Script ppt
Java Script ppt
Priya Goyal
 
Typescript ppt
Typescript pptTypescript ppt
Typescript ppt
akhilsreyas
 
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
Edureka!
 
Looping statements in C
Looping statements in CLooping statements in C
Looping statements in CJeya Lakshmi
 
Introduction to the Dart language
Introduction to the Dart languageIntroduction to the Dart language
Introduction to the Dart language
Jana Moudrá
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
VINOTH R
 
Go lang
Go langGo lang

What's hot (20)

Java IO Package and Streams
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streams
 
Building beautiful apps with Google flutter
Building beautiful apps with Google flutterBuilding beautiful apps with Google flutter
Building beautiful apps with Google flutter
 
Golang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageGolang - Overview of Go (golang) Language
Golang - Overview of Go (golang) Language
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
Javascript
JavascriptJavascript
Javascript
 
PHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and requirePHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and require
 
Functions in javascript
Functions in javascriptFunctions in javascript
Functions in javascript
 
Dart ppt
Dart pptDart ppt
Dart ppt
 
Dart workshop
Dart workshopDart workshop
Dart workshop
 
Php basics
Php basicsPhp basics
Php basics
 
Loops and conditional statements
Loops and conditional statementsLoops and conditional statements
Loops and conditional statements
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Statements and Conditions in PHP
Statements and Conditions in PHPStatements and Conditions in PHP
Statements and Conditions in PHP
 
Java Script ppt
Java Script pptJava Script ppt
Java Script ppt
 
Typescript ppt
Typescript pptTypescript ppt
Typescript ppt
 
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
Swift Tutorial For Beginners | Swift Programming Tutorial | IOS App Developme...
 
Looping statements in C
Looping statements in CLooping statements in C
Looping statements in C
 
Introduction to the Dart language
Introduction to the Dart languageIntroduction to the Dart language
Introduction to the Dart language
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Go lang
Go langGo lang
Go lang
 

Similar to Dart PPT.pptx

Chapter 2 Flutter Basics Lecture 1.pptx
Chapter 2 Flutter Basics Lecture 1.pptxChapter 2 Flutter Basics Lecture 1.pptx
Chapter 2 Flutter Basics Lecture 1.pptx
farxaanfarsamo
 
Dart Programming.pptx
Dart Programming.pptxDart Programming.pptx
Dart Programming.pptx
AnanthalakshmiN4
 
Mobile Application Development class 002
Mobile Application Development class 002Mobile Application Development class 002
Mobile Application Development class 002
Dr. Mazin Mohamed alkathiri
 
Flutter tutorial for Beginner Step by Step
Flutter tutorial for Beginner Step by StepFlutter tutorial for Beginner Step by Step
Flutter tutorial for Beginner Step by Step
Chandramouli Biyyala
 
GDSC-FlutterBasics.pdf
GDSC-FlutterBasics.pdfGDSC-FlutterBasics.pdf
GDSC-FlutterBasics.pdf
GDSCSSN
 
pembelajaran tentang dart dalam bahasa inggris
pembelajaran tentang dart dalam bahasa inggrispembelajaran tentang dart dalam bahasa inggris
pembelajaran tentang dart dalam bahasa inggris
Reza120164
 
Presentaion on Dart and Flutter Development.pptx
Presentaion on Dart and Flutter Development.pptxPresentaion on Dart and Flutter Development.pptx
Presentaion on Dart and Flutter Development.pptx
nitesh213757
 
Golang online course
Golang online courseGolang online course
Golang online course
bestonlinecoursescoupon
 
Flutter alegria event gdsc pillai college of engineering
Flutter alegria event gdsc pillai college of engineeringFlutter alegria event gdsc pillai college of engineering
Flutter alegria event gdsc pillai college of engineering
AnandMenon54
 
330f15_AnsariJonesWilder_Dart.pptx
330f15_AnsariJonesWilder_Dart.pptx330f15_AnsariJonesWilder_Dart.pptx
330f15_AnsariJonesWilder_Dart.pptx
praxyvines
 
flutter intro.pptx
flutter intro.pptxflutter intro.pptx
flutter intro.pptx
HajerZitouni3
 
Dart the Better JavaScript
Dart the Better JavaScriptDart the Better JavaScript
Dart the Better JavaScript
Jorg Janke
 
Developing Cross platform apps in flutter (Android, iOS, Web)
Developing Cross platform apps in flutter (Android, iOS, Web)Developing Cross platform apps in flutter (Android, iOS, Web)
Developing Cross platform apps in flutter (Android, iOS, Web)
Priyanka Tyagi
 
Building scalable and language independent java services using apache thrift
Building scalable and language independent java services using apache thriftBuilding scalable and language independent java services using apache thrift
Building scalable and language independent java services using apache thrift
Talentica Software
 
VISUAL BASIC.pptx
VISUAL BASIC.pptxVISUAL BASIC.pptx
VISUAL BASIC.pptx
NoelFrancisNgojo
 
Android Dev Study Jam.pptx
Android Dev Study Jam.pptxAndroid Dev Study Jam.pptx
Android Dev Study Jam.pptx
GDGGhardaiaDatabase
 
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshuunit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
GauravRawat830030
 
F# and the DLR
F# and the DLRF# and the DLR
F# and the DLR
Richard Minerich
 

Similar to Dart PPT.pptx (20)

Chapter 2 Flutter Basics Lecture 1.pptx
Chapter 2 Flutter Basics Lecture 1.pptxChapter 2 Flutter Basics Lecture 1.pptx
Chapter 2 Flutter Basics Lecture 1.pptx
 
Dart Programming.pptx
Dart Programming.pptxDart Programming.pptx
Dart Programming.pptx
 
Mobile Application Development class 002
Mobile Application Development class 002Mobile Application Development class 002
Mobile Application Development class 002
 
Flutter tutorial for Beginner Step by Step
Flutter tutorial for Beginner Step by StepFlutter tutorial for Beginner Step by Step
Flutter tutorial for Beginner Step by Step
 
GDSC-FlutterBasics.pdf
GDSC-FlutterBasics.pdfGDSC-FlutterBasics.pdf
GDSC-FlutterBasics.pdf
 
pembelajaran tentang dart dalam bahasa inggris
pembelajaran tentang dart dalam bahasa inggrispembelajaran tentang dart dalam bahasa inggris
pembelajaran tentang dart dalam bahasa inggris
 
Presentaion on Dart and Flutter Development.pptx
Presentaion on Dart and Flutter Development.pptxPresentaion on Dart and Flutter Development.pptx
Presentaion on Dart and Flutter Development.pptx
 
Golang online course
Golang online courseGolang online course
Golang online course
 
Flutter alegria event gdsc pillai college of engineering
Flutter alegria event gdsc pillai college of engineeringFlutter alegria event gdsc pillai college of engineering
Flutter alegria event gdsc pillai college of engineering
 
330f15_AnsariJonesWilder_Dart.pptx
330f15_AnsariJonesWilder_Dart.pptx330f15_AnsariJonesWilder_Dart.pptx
330f15_AnsariJonesWilder_Dart.pptx
 
flutter intro.pptx
flutter intro.pptxflutter intro.pptx
flutter intro.pptx
 
Dart the Better JavaScript
Dart the Better JavaScriptDart the Better JavaScript
Dart the Better JavaScript
 
Developing Cross platform apps in flutter (Android, iOS, Web)
Developing Cross platform apps in flutter (Android, iOS, Web)Developing Cross platform apps in flutter (Android, iOS, Web)
Developing Cross platform apps in flutter (Android, iOS, Web)
 
Building scalable and language independent java services using apache thrift
Building scalable and language independent java services using apache thriftBuilding scalable and language independent java services using apache thrift
Building scalable and language independent java services using apache thrift
 
VISUAL BASIC.pptx
VISUAL BASIC.pptxVISUAL BASIC.pptx
VISUAL BASIC.pptx
 
Android Dev Study Jam.pptx
Android Dev Study Jam.pptxAndroid Dev Study Jam.pptx
Android Dev Study Jam.pptx
 
Unit V.pdf
Unit V.pdfUnit V.pdf
Unit V.pdf
 
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshuunit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
unit 1 programming in c ztgdawte efhgfhj ewnfbshyufh fsfyshu
 
Android Dev Study Jam.pptx
Android Dev Study Jam.pptxAndroid Dev Study Jam.pptx
Android Dev Study Jam.pptx
 
F# and the DLR
F# and the DLRF# and the DLR
F# and the DLR
 

Recently uploaded

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
itech2017
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 

Recently uploaded (20)

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABSDESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
DESIGN AND ANALYSIS OF A CAR SHOWROOM USING E TABS
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 

Dart PPT.pptx

  • 2. What is Dart? 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.
  • 3. Relation between Dart and Flutter: Dart is the programming language used to code Flutter apps. Flutter is a framework. A framework is a tool that provides ready-made components or solutions that are customized in order to speed up development.
  • 4. Let’s Go… Bohot hogya theory ab code karte hai https://dartpad.dev/
  • 5. How to become a Dart programmer?
  • 7. Comments: Comments can be used to explain Dart code, and to make it more readable. One line // This is a normal, one-line comment. Multi line /* Comments like these are also supported. */
  • 8. v Variables Variables are containers for storing data values. SYNTAX: var variableName = value
  • 9. v Data Types String var name = 'name'; int, double, num var year = 1977; Booleans var x = false;
  • 10. v Data Types List var flybyObjects = ['Jupiter', 'Saturn', 'Uranus', 'Neptune']; map var identifier = { key1:value1, key2:value2 [,…..,key_n:value_n] }
  • 11. Conditional Statements: ●Use if to specify a block of code to be executed, if a specified condition is true ●Use else to specify a block of code to be executed, if the same condition is false ●Use else if to specify a new condition to test, if the first condition is false
  • 12. Operators in Dart: The operators are special symbols that are used to carry out certain operations on the operands. ● Arithmetic Operators : + , - , * , / , ~/ , % ● Assignment Operators : =, ??= ● Relational Operators : ==, > , < , >= , <=, != ● Logical Operators : && , || , !
  • 13. Conditional Statements: if ( condition1 ){ // body of if } else if ( condition2 ){ // body of if } else { // statement }
  • 14. Loops: Looping statement in Dart or any other programming language is used to repeat a certain set of commands until certain conditions are not completed. ● for loop ● while loop ● do-while loop
  • 15. for (int i = 0; i < 5; i++) { print('Flutter'); } while(condition){ text expression; } while loop Loops: do{ text expression; }while(condition); For loop Do while loop
  • 16. Function: Functions are the building blocks of readable, maintainable, and reusable code. A function is a set of statements to perform a specific task. Functions organize the program into logical blocks of code.
  • 17. Function: int add(int a, int b){ int result = a + b; return result; } void main(){ var output = add(10, 20); print(output); }
  • 18. Break
  • 19. Dart – Object Oriented Programming: In object-oriented programming, a class is a blueprint for creating objects, providing initial values for state, and implementations of behavior. Class
  • 20. An Object is an identifiable entity with some characteristics and behaviour. An Object is an instance of a Class. Objects
  • 21. Dart class class_name { // Body of class }
  • 22. Dart class gdsc{ var name; void func(){ print("Welcome to Flutter Festival $name"); } }
  • 23. void main() { gdsc member = new gdsc(); member.name = "kunal"; member.func(); }