Dart Modern Features 1. When to use this skill Use this skill when: - Writing or reviewing Dart code targeting Dart 3.0 or later. - Refactoring legacy Dart code to use modern, concise, and safe features. - Looking for idiomatic ways to handle multiple return values, deep data extraction, or exhaustive checking. Discovery To find candidates for modernization: Switch Expressions Search for switch statements where every case assigns to the same variable or returns: - Regex : Pattern Matching Candidates Search for manual map or JSON property extraction and type checking: - Regex : - Regex : Null-…