Skip to content

Add final initializing formal required named parameters fix adds private fields without wrapping #61381

@FMorschel

Description

@FMorschel

Repro:

class A {
  A({int? other});

  final int _var;
}

Becomes:

class A {
  A({int? other, required this._var});

  final int _var;
}

FYI @bwilkerson

I'll take a look at this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions