Lightlines
Catalogue
Sign in
By dart-lang

dart-use-primary-constructors

dart-lang

Write and migrate Dart constructors correctly.

Dart development

What it does

Helps users write, refactor, debug, and migrate Dart code that uses primary constructors and related constructor syntax.

When to use it

Use when writing, refactoring, or debugging Dart code that uses primary constructors.

How to use it

Give it a Dart primary-constructor writing, refactoring, or debugging request; it returns guidance or corrected code.


Access · 0

No additional actions listed in the analysis.

What you need · 1

Primary constructors require Dart 3.13+ for default support; Dart 3.12 supports them only with the experiment enabled.


About this skill

Visibility
Public
Repository
dart-lang/skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
1