Unverified Commit 3896912d authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

Fix for new analyzer lint (#133923)

For https://github.com/flutter/flutter/issues/133922
parent 685ce14b
......@@ -3110,7 +3110,7 @@ class BuildOwner {
assert(_globalKeyRegistry.containsKey(key));
duplicates ??= <GlobalKey, Set<Element>>{};
// Uses ordered set to produce consistent error message.
final Set<Element> elements = duplicates.putIfAbsent(key, () => LinkedHashSet<Element>());
final Set<Element> elements = duplicates.putIfAbsent(key, () => <Element>{});
elements.add(element);
elements.add(_globalKeyRegistry[key]!);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment