Open
Description
Describe the issue
prefer_for_elements_to_map_fromIterable
reports violation only when both key
and value
params are present
To Reproduce
// This is linted.
var m = Map.fromIterable(iter, key: (k) => k, value: (v) => v);
// These are not linted, but should be?
var m = Map.fromIterable(iter, key: (k) => k);
var m = Map.fromIterable(iter, value: (v) => v);
// This is also not linted, but may be okay?
var m = Map.fromIterable(iter);
Metadata
Metadata
Assignees
Labels
A bug or feature request we're likely to work onFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.Issues with the analyzer's support for the linter packageIssues related to lint rules that fail to report a problem.A request for a change that isn't a bug