From 3896912d447986ee535081bc331bc43150105cbc Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Sat, 2 Sep 2023 12:47:28 -0700 Subject: [PATCH] Fix for new analyzer lint (#133923) For https://github.com/flutter/flutter/issues/133922 --- packages/flutter/lib/src/widgets/framework.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 4443a141333..34421ae2e5e 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -3110,7 +3110,7 @@ class BuildOwner { assert(_globalKeyRegistry.containsKey(key)); duplicates ??= >{}; // Uses ordered set to produce consistent error message. - final Set elements = duplicates.putIfAbsent(key, () => LinkedHashSet()); + final Set elements = duplicates.putIfAbsent(key, () => {}); elements.add(element); elements.add(_globalKeyRegistry[key]!); }