Skip to content

RegExp is deprecated in dart #62012

@bambinoua

Description

@bambinoua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions