avoid_shadowing_type_parameters

Group: style

Maturity: stable

Dart SDK: >= 2.1.1 • (Linter v0.1.72)

Since info is static, may be stale
corerecommendedflutter

View all Lint Rules

Using the Linter

AVOID shadowing type parameters.

BAD:

class A<T> {
  void fn<T>() {}
}

GOOD:

class A<T> {
  void fn<U>() {}
}