google / built_collection.dart

Immutable Dart collections via the builder pattern.
https://pub.dev/packages/built_collection
BSD 3-Clause "New" or "Revised" License
275 stars 52 forks source link

BuiltMap.containsKey should accept `Object?` #270

Open davidmorgan opened 1 year ago

davidmorgan commented 1 year ago

Now that K can be nullable, containsKey should allow Object?.

athomas commented 1 year ago

containsValue and operator[] signatures are also stricter than in Map.