avoid_function_literals_in_foreach_calls

Group: style

Maturity: stable

Linter v0.1.30

Since info is static, may be stale
recommendedflutter

View all Lint Rules

Using the Linter

AVOID using forEach with a function literal.

BAD:

people.forEach((person) {
  ...
});

GOOD:

for (var person in people) {
  ...
}

people.forEach(print);