dart-modern-features
Installation
SKILL.md
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:
switch\s*\([^)]+\)\s*\{\s*case
Related skills