unnecessary_lambdas

Group: style

Maturity: stable

Linter v0.1.30

Since info is static, may be stale

View all Lint Rules

Using the Linter

DON'T create a lambda when a tear-off will do.

BAD:

names.forEach((name) {
  print(name);
});

GOOD:

names.forEach(print);