~/talk

Dart null safety in Action

Talkat Google I/O 2021 · 2021-05-18..05-20· [developer-experience]
slides:none on file

Live coding in DartPad demonstrates Dart null safety syntax and tradeoffs: nullable vs non‑nullable types, the null assertion (!) operator, nullable generics, the new Required keyword, type promotion rules, and how late lazy initialization enables circular references and cached values. Examples show exact expressions to change, when runtime exceptions occur, and which analyzer errors disappear; all code runs in the workshop and links to the Null safety code lab and Flutter resources.

AI-written summary · about

  1. 0:00Start
  2. 2:54Dart Null Safety
  3. 5:22Nullable Types
  4. 6:27Step Three Nullable Types with Generics and Type Parameters
  5. 17:41Using a Default Value
  6. 18:35Six Type Promotion
  7. 19:18Type Promotion
  8. 25:41Exceptions
  9. 26:57Object Property
  10. 30:06Sealed Classes
  11. 30:28Instantiate a String Provider
  12. 33:09Late Keyword
  13. 35:5312 Late Circular References
  14. 37:58Cached Value Provider
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.