Lightlines
By dart-lang

dart-use-primary-constructors

dart-lang6.9k installs

Less boilerplate in your Dart constructors.

What it does

Guides users in writing and refactoring Dart code with correct primary and concise constructor syntax.

When to use it

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

How to use it

It changes how the agent writes, refactors, and debugs Dart constructors in the project.

What you provide

  • An existing project

Latest review

What you need · 1

Requires Dart 3.12 or later for primary constructors. Dart 3.12 needs the primary-constructors experiment enabled through --enable-experiment=primary-constructors or analysis_options.yaml; Dart 3.13 and above enable the feature by default.


Access · 0

No additional actions listed.