Partial preview of the text
Download Master-Dart-Handwritten-Guide and more Cheat Sheet Programming Languages in PDF only on Docsity!
Data type Pt tobe Agena OF? ! Controf Faw Cy Sualtch Cove, 15 =? Funestong (12) $ Param ebers 21 Se Exception handine 25, Saat 0 Pai eae E QY & Con Stuete rt is ‘ cE?) i Lnhes'tance. e 3 { x) f_Metisd Overs cling =a f (GED) 5 PbS trae elas ] (te) & Interface (42) o Stebte om (44) & Functtonet pray: 43 —> Coie exons (50) & Fived Licp See (51) $ Groweble List aus & Sets ae ——] ~~ Sell 3 i o! es _DAar s7,, eg a8 ] Whot % Dart 2 eames = Mi Dor bb a Aki bable. fanoumoe that | 2. We te write. Aierple Wripts cr fall , featured appticattons, i. | Devt helps usin Creating mo bite App we} ai ¢ i Ave Seyver App = a Dart i Created by Googte self - eta soas : ah | it | Introd thon & Setup 3 - To px Gram bAing Dart | on ae i | Lpteu?T DEA Dayt Pact. |e Znétat! Dart Sdje o Me Setup reputred | © Spstete Inteury DEA @ Online Ine by Dart. ° acheg rites Dav. Phesin : Go ta! clart ped» olor ~ a ae fat > doubse (float i not supported ) : 6 Strings fe . © Bovleans @ fis ( o@ Areagt) BM pt @ Rune ¢ fer express Unicode Chere chess iy Ltrtog) | @ S$ambods | gd Note % ALL clote. Aype, in Dart Gre Ob fect. | Tlerefore, values Gre ms default Nude - (yntey foc ole daretion 2— i — | = a | => Claka type Varied be Pome = yet | fe. | int Gye = Lo; | oR l > Var age = In? to &% infer ect a i Qutomat? Ally J | | Mor examples oe String name =" Henry g Gg Ok =! Var name = * Henry” « Scam plies Or Void main () t elon aE Var Count- 4 Ynberved ap an intesey Gdom Compt A kespuroral ety ty Comptter, ink _herVatue = JOxlen DEBAEE ; me. | oo. oo! @ B digtts must be Me Garo) |e) m hex Value) - | (@ It LA de averted te Stet eg name 5 v ia gy er velus ) Aoudte expon cut = diuges * CH teh veers detlean) Priat- (Count)? priate (bherxvetue ) 3 = pring Cu Cupopeut) ~ p23 & 39404 65399 prin (name )-2 ¢ _ 7 142000+0 \ a ft ” n K ; rani: - aes yee ee Se ee eye Key wsorda : ii “elas , C] eral name ae Peter 4 « oF, 1 el a @ Const PF = me Ody a Ditperesue between fiat & Gast ; é_ finel var’able Can only ell oo iatiteliged tulen acted -\ ies Pah nseeenes heble. fy ings ity Le 5b x Compile. -~ time Constant. igs tht, hitatige, ” dumtnee epee 5 IndHnce veraste Cin Clasp) 7 Gin Const - ; - an) " r * ab 9 Conga ak Moke tk Sfatic x iy Ee 1 ig : , a : we rt. “1 r fe i 2 7 J L , uel 4 Pret kay wing. asl thy Mame. = /Mumbal’ 4 Fina Ships Coun tyitame = ‘India! « 2 roa keyword - Const PF = a .iy' Congk douhte preety Sn eee ig ets HY Gk clo Drv ete Chass Circle t Pinel Colo 'Redle iH YW leat PL 2.14 x erre> (Cae Sfetic fret Gn be doclared gn const.) | Stetic Const PL = aelW > 3 Ht | — Page No. 6 Date / I —— Cae Coens >= 90 £8 marks < 90) J Print ("A prade Ole B | b eloe aCe ks > = gn BL marks <8o0) 2 Print (" 8 pred”); J ele i (mem >= lo ££ mare < 70) J P riar Ca" C Grade “) 4 : a J __elae Comedies i904 8 pisos EO) priat_(" D rane"); j__¢he C mans 20 8& merks ~ 3077 Patek (Gy ae fie fettes a )a ie ela + fixink CC" Tnvelid marks - Tey a3 ain Bee)? | { | Can ditional Expressions _ | ; #K || 4 Yoid main () Tag | 4 | mo ondition § Cups * trp 2 WM LF _cndittion i My rhe 4) evaluate e@xpd 1 Other wise twoluahe & yeturn ¢xp2 Poe 2g eee int 6 = 33 int Smelter = AxXS 7 athe Lo is Smaller priat (" $ $meller to Sraedien den 4 P-T-0: f Mids expi 2? ew Ati expt a nene Ai oruasl rutile voluates —} divi, Name = null Shrinf pameTobriak = mame $2" Guest User purist (_nameTs Print)? = SICH <1) det S4abemients 2% oh Pimancontmm yt to -\ amet Coble Only s fat & : J Stag. es t baot , dowbhte ore nok ettow ed « Ie to Similar te Sp > Sse - 9 Lael der. Suntay i - AE ee Brith (voriabte) f Cone f $ HM Execute Code here break $ se, is ens ei: i i, i, “aa ee *S Her ators 8— : M Syntax FOR loop a for (var_tz0 + icy s pany d print (Heo "); 4 It Sgnra WHILE Loop Vor f= | aa aa tlie C iéu) 4 priat ("Hoo ") s hi i++ ane cay Page No, 193 Date / | = ————— 2 Definite ——> FoR Loop Loops. 2 _ Ince faite OHILE “y Condition Chéthes wate WwHILe wide > Condition hecked 6k end. Uuter wee In Loop H vod Main () PI ; id " P Ligt= planetitan pax Merceery', “venus, ” Earth", “Mark "y. dis C Strives planer Jy Planet List ) f Mertury pring (plinet) : Vesa ; 4 Sarth | ; Meee rg | break Kee word ihe .{ Te _..Come ts Ou, Wied ealieneialieeae =a “4 a Conclition Cs met) boid main () 2 aoe Cink Po! (Leon) ane { Priet (ais L ipem (ae peamep gate, 3 bresk } 4 a 5 aj ¢ but ‘break! Works onty for itd parent Soop & fails in (ote of Nested _foops (fmt beens 1 te— loop » 2 ae are continued ), Continue key word + (Te Skip the fheretten _tuben Condition 17 met .) ak | eid matin ¢) 2 | He fine fei seeta ls 5 tee. ar beady dar! | Continue } 1 i LC huigped 2) Print Ci) 5 4 A o + Ve Can woe Uibela, in Continue alton Mike before =— Functon 3- 2 Cotte ction of Aftotem ents Grosipsel -tegedher te perform Qn Operation - ee Revive Parameters, int | ArexC fot Leesth, ink brenclt ) 4 2 en I -fuacr body = lias to Tetum Rentts ¥ breadts? chart ) 4 $ Fungfon in dark are aul “Objects i: ie. can be gastyned te variable or patel ao parameter te other fan chon » 7 Fe roa °. eo _ no vetum yale i td UU xttirn nett. Perc Ee ne ns Specipring atu type ty opHonel ur fy Wetommecded as per Code Convention. ! # | y: Pee ZA 7 Voit malty () 4 ag C, Find Perimeter (uu, 224 me Whres = jer Aaew ( 49, 63 init pai ("Ta oa Sree free “): ‘ Veid HatPerlmeter C ink Lergh gp brea elt) 2 ink Plrimeter = 2 ># Cheah + breaclts) > pring ( " Tle pPerinder bo $ perimeter) 5 { i Jak fet fires( tnt Length 5 tnt breads) £ fat Arta = femsty ae breadth 5 Hum area + J foram eters a ae : in Dare : ; ie = A. : ee Posi¥onot — i OPHonal = Mameg | Fis ee, aes Pies. — 3 Positional a ; Mi 1: Re quired Parameters U2 Optiones positional piirameter = Vord main () f print lifter ("New York", "Nao Delhi”, “* Syelney") Priak ("): Print @indits C" Usa" J o/. Restrict) parometers void Print Citi es String Aamel , Sthrieg name 2, String nameel 4 priae ©" Name 1 ww $namet) 2 = pedal ("Mou 2 is ¢nome2"); prt C" Mew 3» $name3): S Y Aprionsl Positioned Qcrometer void Prick Chun driven CString _namel , C Sting famed, df print C" Nau by $namet ); i $ Print ("Nowe 2 ip $naue2)* prt (oP Regia. 3 by fuss 3), : Outpur = Nowe J Mew York 4 1 u A OMAN: Mes Dellet Mawel % USA “x Mowe 2 or riuett Mew. 3 null Options! name) parameters + Prevent evrors thre are Large np. of para meters + Lynton hi ine find Volume (fat teng, of mt breadh int a a Bate y V2 yetim Length # eer we best ght F J W calling the shove tun chien t we Var regute = find Volume (2, Arendt (2 3) letyt (Sto) = SA eA eae ET 7 Drink Cresrult)? “U 2% 3x to = 60 doe, Net Meter M Sexuene of Se vor Teo ee C2, bate 110; breasts 2 3) Prine (rub) * UW 5s io 2 60