unnecessary_new

Group: style

Maturity: stable

Dart SDK: >= 2.0.0 • (Linter v0.1.54)

View the Project on GitHub dart-lang/linter

AVOID new keyword to create instances.

BAD:

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

GOOD:

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