Skip to main content

Dart Modern Features

Skill Verified Active

Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Pattern Matching, Switch Expressions, Extension Types, Class Modifiers, Wildcards, Null-Aware Elements, and Dot Shorthands.

Purpose

To help developers leverage the latest modern Dart features for more concise, readable, and safer code, enabling efficient refactoring and adherence to best practices.

Features

  • Guides on Dart Records for aggregate data structures.
  • Explains Pattern Matching for data destructuring and validation.
  • Demonstrates Switch Expressions for concise value evaluation.
  • Covers Class Modifiers for restricted class usage.
  • Details Extension Types for zero-cost wrappers.
  • Illustrates Digit Separators for number readability.
  • Explains Wildcard Variables for unused bindings.
  • Shows Null-Aware Elements for conditional collection inclusion.
  • Includes Dot Shorthands for type inference.

Use Cases

  • Writing or reviewing Dart code targeting Dart 3.0 or later.
  • Refactoring legacy Dart code to use modern, concise, and safe features.
  • Learning idiomatic ways to handle multiple return values, deep data extraction, or exhaustive checking in Dart.
  • Identifying opportunities for code modernization using provided regex patterns.

Non-Goals

  • Providing a linter or formatter.
  • Automating the refactoring process (it guides manual refactoring).
  • Covering Dart language features outside the 3.0 - 3.10 range.

Trust

  • info:Issues AttentionIn the last 90 days, 17 issues were opened and 27 were closed, indicating a closure rate of approximately 61%, which is good, but the number of open issues is notable.

Installation

npx skills add flutter/skills

Runs the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.

Quality Score

Verified
98 /100
Analyzed about 16 hours ago

Trust Signals

Last commit1 day ago
Stars1.9k
LicenseBSD-3-Clause
Status
View Source

Similar Extensions

Moyu (摸鱼)

100

과잉 엔지니어링 패턴이 감지되면 자동으로 활성화됩니다: (1) 사용자가 명시적으로 변경을 요청하지 않은 코드나 파일을 수정하는 경우 (2) 요청되지 않은 새로운 추상화 레이어(class, interface, factory, wrapper)를 생성하는 경우 (3) 요청되지 않은 주석, 문서, JSDoc, 타입 어노테이션을 추가하는 경우 (4) 요청되지 않은 새로운 의존성을 도입하는 경우 (5) 최소한의 편집 대신 파일 전체를 다시 작성하는 경우 (6) diff 범위가 사용자의 요청을 명백히 초과하는 경우 (7) 사용자가 "너무 많아", "거기는 건드리지 마", "X만 변경해", "간단하게", "그만" 등의 신호를 보내는 경우 (8) 발생할 수 없는 시나리오에 대한 에러 처리, 유효성 검사, 방어적 코드를 추가하는 경우 (9) 요청되지 않은 테스트, 설정 스캐폴딩, 문서를 생성하는 경우

Skill
uucz

Definition Of Done

100

Mandatory checks to run before completing any task that touches md files or dart code in this repository.

Skill
flutter

Migrate Validate

100

Validate pending migrations for foreign key consistency, rollback safety, and best practices

Skill
ruvnet

Semgrep Rule Creator

100

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

Skill
trailofbits

Cleanup Cycles

100

Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".

Skill
raintree-technology

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m

© 2025 SkillRepo · Find the right skill, skip the noise.