Why null safety?
summary
Null safety arrives in Dart 2.12 inside Flutter 2 as a sound type extension that partitions nullable and non‑nullable variables, uses control‑flow analysis and type promotion, and adds a bang operator and late modifier plus automated migration tools. The compiler proves non‑nullable expressions never produce null, removes redundant runtime null checks, and yields about 90% of existing Dart code already compatible, producing smaller, faster binaries and fewer null‑reference crashes.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:22What Is Null Safety
- 5:07Does the Static Analysis Provide Real User Benefit
- 6:24Type System Complexity for Nullable Types
- 6:59Static Analysis Is Conservative
- 9:27Type Promotion
- 9:46Control Flow Analysis
related talks
26mSound Dart
59mBringing C# nullability into existing code - dammit is not the answer!
01h 00mNull Safety in Spring Applications With JSpecify and NullAway
20mCode Quality Gates for Large-Scale Flutter Apps
43mThe Road to Kotlintown
36mDart Exceptions: Best Practices
19mModern JSON Handling in a Macro-less Flutter Era
31mExploring Static Code Analysis techniques in Flutter
