avoid_unused_constructor_parameters

Group: style

Maturity: stable

Linter v0.1.36

Since info is static, may be stale

View all Lint Rules

Using the Linter

AVOID defining unused parameters in constructors.

BAD:

class BadOne {
  BadOne(int unusedParameter, [String unusedPositional]);
}

class BadTwo {
  int c;

  BadTwo(int a, int b, int x) {
    c = a + b;
  }
}