unnecessary_const

Group: style

Maturity: stable

Linter v0.1.54

Since info is static, may be stale
recommendedflutterpedantic

View all Lint Rules

Using the Linter

AVOID repeating const keyword in a const context.

BAD:

class A { const A(); }
m(){
  const a = const A();
  final b = const [const A()];
}

GOOD:

class A { const A(); }
m(){
  const a = A();
  final b = const [A()];
}