Dart Analyze

Dart Analyze

Community Analyzer

Avoid shadowing type parameters DRT-W1069

Anti-pattern
Major

AVOID shadowing type parameters.

BAD:

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

GOOD:

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