Index of every page on this site: llms.txt
Dart on GitHub

Dart

@dart-lang

Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.

United States of America

15 skills
README badge for dart-lang/skills
  • Cross-platform file and directory path manipulation, segment splitting, extension extraction, and context conversion using `package:path` and `package:file`. Use when writing, inspecting, joining, splitting, or refactoring file paths, directory names, or extensions, or replacing raw string path operations (`.split('/')`, `'$dir/$file'`, `.endsWith('.ext')`, `.replaceAll('\\', '/')`). Don't use for HTTP network URI routing, database query strings, or non-path string processing.

    README badge for dart-lang/skills/dart-use-path-package
  • 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.

    README badge for dart-lang/skills/dart-use-pattern-matching
  • How to inject external code examples into Dartdoc using the {@example} directive, and how to filter those files using #hide, #region, and #endregion tags.

    README badge for dart-lang/skills/dart-use-doc-examples
  • Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.

    README badge for dart-lang/skills/dart-migrate-to-checks-package
  • Architectural patterns, entrypoint structure, exit codes, stream routing, and subprocess spawning for Dart command-line interface (CLI) applications. Use when building CLI tools, console utilities, scripts, argument parsing with `package:args` (ArgParser or CommandRunner), handling exit codes, configuring executables in pubspec.yaml, spawning Dart subprocesses, or compiling native CLI binaries. Don't use for Flutter UI widgets, web applications, or standalone HTTP backend servers.

    README badge for dart-lang/skills/dart-build-cli-app
  • Rules and formatting guidelines for writing Dart /// API documentation and doc comments. Use when documenting Dart code, writing doc comments for any Dart declaration (libraries, classes, methods, variables, etc.), or when instructed to follow the Effective Dart documentation guidelines.

    README badge for dart-lang/skills/dart-write-documentation

Curated setups

Skills grouped for one workflow and installable with one command.

No collections yet

When @dart-lang publishes a collection, it will appear here.

Browse curators