Dart language

From HoangNguyen0403/agent-skills-standard · View interactive version

Dart language is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Dart 3.x language feature standards: null safety, records, sealed classes, switch pattern matching, extensions, and async/await. Use when using !, ?., ??, late, sealed classes, record types, switch expressions, or async patterns — and before introducing any new Dart 3.x construct to confirm the mode

How to use this skill

Skill file

Dart Language Patterns

**Priority: P0 (CRITICAL)**

Implementation Guidelines

Anti-Patterns

Code

// Sealed class and Switch expression
sealed class Result {}
class Success extends Result { final String data; Success(this.data); }
class Failure extends Result {}

String message(Result r) => switch (r) {
  Success(data: var d) => "Got $d",
  Failure() => "Error",
};

References

Null-safety checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.