Bahasa

Referensi Cepat Dart

Cheat sheet siap cetak untuk Referensi Cepat Dart, disusun untuk pencarian cepat, belajar, dan referensi di meja

Sumber
Dart Documentation (dart.dev)
Lisensi
MIT
Diperbarui
2026-03-27

Contoh

Isi cheat sheet ini

  • Dasar
  • Tipe
  • Fungsi
  • Control Flow
  • Class
  • Mixin & Extension
  • Async/Await
  • Koleksi
  • Null Safety
  • Pola Umum

Hello World

void main() {
  print('Hello, Dart!');
}

Variabel

var name = 'Dart';       // type inferred
String lang = 'Dart';    // explicit type
final pi = 3.14;         // runtime constant
const max = 100;         // compile-time constant

Interpolasi String

var name = 'World';
print('Hello, $name!');
print('1 + 1 = ${1 + 1}');

Unduh cheat sheet lengkap dengan semua bagian, siap cetak

Unduh PDF

Unduhan

Pilih varian yang sesuai dengan cara Anda membaca