Dart Records & Patterns Deep Dive — Destructuring, Sealed Classes & Exhaustive Matching Dart 3.0 shipped Records, Patterns, and Sealed Classes together. Used well, they eliminate entire categories of runtime errors and make state management dramatically more expressive. // Before: untyped Map Map<String, dynamic> getUserInfo() => {'name': 'Alice', 'age': 30}; // Dart 3: typed Record (String nam
Ages ago when CSS grids came with a repeat() function to simplify defining repetitive columns and rows, I was not alone in wishing for this function to be made generic and work in any context. After seeing Wes Bos on BlueSky wishing for this exact concept, specifically for repeating segments in a shape() definition, I chimed in with my +1's on making repeat() generic across CSS Without delay, @no