dart-use-pattern-matching - Apply Dart 3 pattern matching and switch expressions.
Applies Dart 3 pattern matching, switch expressions, and destructuring to validate data schemas, handle algebraic data types, and decompose control flow.
Tags
Updated: 2026-09-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Validate data schemas using patterns
- Destructure records and map properties
- Enforce exhaustiveness on sealed classes
- Refactor complex control flow
Inputs
- Dart source code
- JSON or API responses
- Sealed class definitions
Outputs
- Pattern-matched Dart source code
- Static analysis diagnostic results
Requirements
- Dart 3 SDK
- dart analyze tool
