'Flutter 3.0 upgrade broke iterable extensions

After upgrading to flutter 3.0 it seems that the IterableExtension and the IterableIterableExtension of the collections.dart official API doc do not work anymore. Do you have to import a package manually to continue using them?

I'm particularly interested in flattened property of the IterableIterableExtension and in the sortedBy of the IterableExtension



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source