migrate `prefer_foreach` from `traverseNodesInDFS()` (#3719)
migrate `prefer_foreach` from `traverseNodesInDFS()` (#3719)

* migrate from `traverseNodesInDFS()`

* -> unifying visitor
dart-lang/linter,dart-lang/linter