sdk icon indicating copy to clipboard operation
sdk copied to clipboard

RegExp is deprecated in dart

Open bambinoua opened this issue 3 weeks ago • 30 comments

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.

bambinoua avatar Nov 18 '25 14:11 bambinoua