ConvertPositionalToNamedFormal class

Converts required positional parameters to named ones.

Example:

class MyType<T extends Object> {
  const MyType(
    this.pos0,
    this.hello, {
    this.named1,
  });

  final String pos0;
  final OtherType hello;
  final int? named1;
}

When applied to pos0, the result is

class MyType<T extends Object> {
  const MyType(
    this.hello, {
    required this.pos0,
    this.named1,
  });

  final String pos0;
  final OtherType hello;
  final int? named1;
}

Properties

filesToAnalyze List<String>
A list of glob patterns matching the files that run cares about.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(CustomLintResolver resolver, ChangeReporter reporter, CustomLintContext context, SourceRange target) → void
Emits lints for a given file.
startUp(CustomLintResolver resolver, CustomLintContext context, SourceRange target) Future<void>
Emits lints for a given file.
inherited
testAnalyzeAndRun(File file, SourceRange target) Future<List<PrioritizedSourceChange>>
Analyze a Dart file and runs this assist in test mode.
inherited
testRun(ResolvedUnitResult result, SourceRange target, {Pubspec? pubspec}) Future<List<PrioritizedSourceChange>>
Runs this assist in test mode.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited