Skip to content

[file_selector] XTypeGroup should be immutable #111906

@stuartmorgan-g

Description

@stuartmorgan-g

XTypeGroup should be marked as @immutable, and its constructor made const, so mutable fields aren't accidentally added to it.

This will require a three-step process because of our analysis settings:

  • Annotate all creation of XTypeGroups in the plugin's other package's with // ignore: prefer_const_constructors.
  • Make the change in the platform interface package.
  • Update the other packages to require that new version of the platform interface package, remove the ignore's and add the consts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: file_selectorThe file_selector pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions