Dart is a programming language mainly backed by Google and developed with open source community. It is a client-optimized programming language for developing high-performance apps on multi-platform, such as mobile, desktop, web, and server. Dart was unveiled at the GOTO conference in Aarhus, Denmark, October 10–12, 2011.
Long story short, during the keynote of Google Developer Days in Shanghai in September 2018, Google announced Flutter Release Preview 2, the last major release before Flutter 1.0. Until now, Flutter 3 and Dart 3 stable releases has been unveiled and performing very well both on market share and performance compared to other hybrid/cross-platform framework competitors.
3. Universitas Sriwijaya
Table of Contents
• Why is it Dart?
• Overview of Dart & setting up environment
• Dart Basics (Syntax & Structure):
- Variables & data types
- Functions
- Conditional Operators
- Control flow
6. Universitas Sriwijaya
• Object Oriented Programming (OOP).
• Support development for web, mobile,
desktop, and server.
• Productive-based programming.
2011
17. Universitas Sriwijaya
Variables & Data Types
final hanya diinisialisasi saat
digunakan.
const harus diinisialisasi dan
diketahui (tidak boleh bernilai null)
Sama-sama bersifat konstan.
31. Universitas Sriwijaya
Quiz
1. Yang bukan termasuk dalam control
flow dalam Dart adalah...
A. For loops
B. Try-catch
C. Break & continue
D. Void function()
32. Universitas Sriwijaya
Quiz
2. Apa itu keyword break dalam Dart?
A. Melewati suatu iterasi true dalam loop
B. Menghentikan proses eksekusi loop
C. Keluar dari suatu fungsi
D. Menunda eksekusi suatu program
33. Universitas Sriwijaya
Quiz
3. Apa best practice untuk mendeklarasikan
nilai Pi = 3.14159?
A. int Pi = 3.14159
B. double Pi = 3.14159
C. const double Pi = 3.14159
D. final double Pi = 3.14159
34. Universitas Sriwijaya
Quiz
4. Bagaimana cara mendefinisikan fungsi
tanpa kembalian nilai dalam Dart?
A. function functionName() {}
B. def functionName() {}
C. void functionName() {}
D. int functionName() => ...
35. A. oof
B. foo
C. Tidak ada output
D. Compilation error
Universitas Sriwijaya
Quiz
5. Apakah outputnya?