sdk
sdk copied to clipboard
RegExp is deprecated in dart
I've upgraded flutter to 3.38.1 and now I have a many deprecation warnings for RegExp.
RegExp is deprecated and shouldn't be used. This class will become 'final' in a future release. 'Pattern' may be a more appropriate interface to implement
So how do I need to migrate from RegExp if Pattern is just interface?
It loos like a lint rule allows me to see such kind of deprecations and I would not like to disable it because I believe it disables all deprecation warnings.