~/talk

Behind the @ – Dart Annotations in Depth

slides:none on file

Shows how annotations become enforceable rules by building a custom analyzer plugin that issues IDE and dart analyze warnings, with a concrete lint that checks a top‑level variable annotated must use const is actually const to prevent dev-only code leaking into production. Demonstrates creating const annotation classes, wiring a lint via custom_lint, and a generator using build_runner to collect annotated symbols into a barrel file — used on a codebase with ~100 engineers and millions of lines.

AI-written summary · about

  1. 0:00Dart annotations introduction
  2. 2:53Built-in annotations
  3. 6:29Lesser-known annotations
  4. 10:05Custom annotations for quality
  5. 13:56Enforcing const usage
  6. 15:03Analyzer plugins for annotations
  7. 17:11Annotations in codegen
  8. 18:37Custom codegen annotations
  9. 20:00Summary
~/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.