Remove deprecated describeEnum from framework - #190076
Conversation
navaronbracke
left a comment
There was a problem hiding this comment.
LGTM
According to https://github.com/search?q=repo%3Aflutter%2Fflutter%20describeEnum&type=code
there's only these two usages, so I think we're good!
Piinks
left a comment
There was a problem hiding this comment.
We should open a migration guide in flutter/website to have this listed under breaking changes when it is released
Is there an example that i could look at ? |
Yup yup! flutter/website#13457 is an example. There is a template in https://github.com/flutter/website/blob/main/sites/docs/src/content/release/breaking-changes/template.md |
opened flutter/website#13682 |
Piinks
left a comment
There was a problem hiding this comment.
For posterity, can you fill out the PR description and why we are removing this now? Might be good to also link back to the PR it was deprecated for future archeologists. :)
done |
258c28b to
fe86654
Compare
this change removes the
describeEnummethod from the framework,describeEnumwas used to get a short description of an enum value, this became redundant with thenamegetter onEnumwhich was introduced inDart 2.14.for reference see:
EnumName.namewhere possible. #94496describeEnumremoval breaking change entry and migration guide website#13682Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.