Skip to content

Commit

Permalink
Fix for new analyzer lint (#133923)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Sep 2, 2023
1 parent 685ce14 commit 3896912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/widgets/framework.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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]!);
}
Expand Down

0 comments on commit 3896912

Please sign in to comment.