- Notifications
You must be signed in to change notification settings - Fork30k
RemoveExtendSelectionByPageIntent#182642
RemoveExtendSelectionByPageIntent#182642Renzo-Olivares wants to merge 1 commit intoflutter:masterfrom
ExtendSelectionByPageIntent#182642Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Code Review
This pull request removes theExtendSelectionByPageIntent class and its associated handler_extendSelectionByPage fromEditableTextState. The removal is based on the observation that this API has remained unused within the framework since its introduction. While removing unused code is generally good for maintainability,ExtendSelectionByPageIntent is a public class, and its removal constitutes a breaking change. Following the Flutter breaking change policy, public APIs should typically be deprecated before removal.
I am having trouble creating individual review comments. Click here to see my feedback.
packages/flutter/lib/src/widgets/text_editing_intents.dart (270-275)
Removing the public classExtendSelectionByPageIntent is a breaking change. Even if it is not used within the Flutter framework, it may be used by developers in their own applications. According to the Flutter breaking change policy, public APIs should be deprecated before removal. Please consider deprecating this class instead of removing it entirely, unless it was never part of a stable release.
References
- Code should follow the guidance and principles described in the Flutter contribution guide, which includes the breaking change policy.(link)
This API was added in#105497 but never used.
Pre-launch Checklist
///).