TokenToSeaSkill 广场
English 控制台

Dart Use Pattern Matching

flutter

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.

安装

npx skills add flutter/agent-plugins --skill dart-use-pattern-matching