I have two extensions for differente types String and DateTime. Could someone please to explain me the next behavour on the pictures?

Why extensions for String and DateTime are visible in suggestions for int type?!

Invalid extension method


Solution 1: Danny Tuppeny

This was a bug in the SDK:

https://github.com/dart-lang/sdk/issues/40062

It's been fixed and the fix should be available in the next stable release of Dart/Flutter. It's likely already available in both Dart/Flutter dev versions as it's been a month or so since the fix.