LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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.

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

Capabilities

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

Source

  • Spec: SKILL.md
dart
pattern-matching
switch-expressions
destructuring
Validate data schemas using patterns
Destructure records and map properties
Enforce exhaustiveness on sealed classes
Refactor complex control flow
Dart source code
JSON or API responses
Sealed class definitions
Pattern-matched Dart source code
Static analysis diagnostic results