LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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-24
dartpattern-matchingswitch-expressionsdestructuring

Capabilities

Validate data schemas using patternsDestructure records and map propertiesEnforce exhaustiveness on sealed classesRefactor complex control flow

Typical Inputs

Dart source codeJSON or API responsesSealed class definitions

Typical Outputs

Pattern-matched Dart source codeStatic analysis diagnostic results

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.