Edge Copy setup link
Skill evidence / Dart Use Pattern Matching

Dart Use Pattern Matching

Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data...

dart-lang/skillspinned 0d9f1c4
✓ Security state: reviewed

2 static scans, 0 counted findings.

Recorded for this package revision; Edge checks the exact bundle again when your agent loads it.

SKILL.md2 files · 14.3 KB
From dart-lang’s public repository. Edge did not write or edit this skill.

What this skill does for you

Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data schemas, handle algebraic data types, and decompose control flow. Use when refactoring complex if-else chains, parsing polymorphic JSON or API responses, destructuring Lists, URI/path segments, String.split() tokens, Records, or Maps, or enforcing exhaustiveness on sealed classes. Don't use for simple boolean conditions, single-variable type promotion (use `is`), or basic collection filtering.

Quoted from the skill description in the pinned source

Use it with Edge

Set up Edge for me: read getedge.cc/SKILL.md and follow it. Then use Edge to load the dart-use-pattern-matching skill from dart-lang/skills.

Paste it into Claude, ChatGPT, Codex or Cursor.

Or read the skill source first.

Try Dart Use Pattern Matching in your agent.

Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data...