avoid_renaming_method_parameters

Group: style

Maturity: stable

Linter v0.1.45

Since info is static, may be stale
recommendedflutter

View all Lint Rules

Using the Linter

DON'T rename parameters of overridden methods.

Methods that override another method, but do not have their own documentation comment, will inherit the overridden method's comment when dartdoc produces documentation. If the inherited method contains the name of the parameter (in square brackets), then dartdoc cannot link it correctly.

BAD:

abstract class A {
  m(a);
}

abstract class B extends A {
  m(b);
}

GOOD:

abstract class A {
  m(a);
}

abstract class B extends A {
  m(a);
}