Skip to content

convert to named argument quick fix/action #60103

@stephane-archer

Description

@stephane-archer
@immutable
class _AdjustColorIsolatemessage {
  final String inputImagePath;
  final num brightness;
  final num temperature;
  final num colorTint;
  final Resolution? resolution;
  const _AdjustColorIsolatemessage(
      this.inputImagePath, this.brightness, this.temperature, this.colorTint,
      {required this.resolution});
}

allow to convert parameters to named parameters in a constructor with a quick fix/action

for example, if we point to this.brightness

expected output:

@immutable
class _AdjustColorIsolatemessage {
  final String inputImagePath;
  final num brightness;
  final num temperature;
  final num colorTint;
  final Resolution? resolution;
  const _AdjustColorIsolatemessage(
      this.inputImagePath, this.temperature, this.colorTint,
      {required this.resolution, required this.brightness});
}

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-refactoringIssues with analysis server refactoringstype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions