unnecessary_new

Group: style

Maturity: stable

Linter v0.1.54

Since info is static, may be stale
recommendedflutterpedantic

View all Lint Rules

Using the Linter

AVOID new keyword to create instances.

BAD:

class A { A(); }
m(){
  final a = new A();
}

GOOD:

class A { A(); }
m(){
  final a = A();
}