dart-use-pattern-matching
dart-use-pattern-matching is an agent skill published by flutter. It lives in the flutter/agent-plugins repository, which has 3,108 GitHub stars and is licensed under BSD-3-Clause; we last read it on 2026-10-20.
This library applies Dart 3 pattern matching, switch expressions, and destructuring to validate data schemas, handle algebraic data types, and decompose control flow. It is intended for use when refactoring complex if-else chains, parsing polymorphic JSON or API responses, destructuring Records or Maps, or enforcing exhaustiveness on sealed classes. No specific credentials are required.
Install
skills is a generic installer for any repository of Claude agent skills -- it reads flutter/agent-plugins’s own structure rather than assuming one, the same way this page reads the skill’s own SKILL.md rather than assuming a format.
npx skills add flutter/agent-plugins
Maintenance
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.
Common questions about dart-use-pattern-matching
- What does dart-use-pattern-matching do?
- This library applies Dart 3 pattern matching, switch expressions, and destructuring to validate data schemas, handle algebraic data types, and decompose control flow. It is intended for use when refactoring complex if-else chains, parsing polymorphic JSON or API responses, destructuring Records or Maps, or enforcing exhaustiveness on sealed classes. No specific credentials are required.
- How do I install dart-use-pattern-matching?
- Run npx skills add flutter/agent-plugins. The skills installer reads the repository’s own structure, so it works for any repository of agent skills.
- Who publishes dart-use-pattern-matching?
- flutter.
- Is dart-use-pattern-matching maintained, and what licence does it use?
- Its repository has 3,108 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-21. The repository declares the BSD-3-Clause licence.