A new way to customize context menus

Summary

Context

Description of change

Migration guide

ToolbarOptions
TextSelectionControls.canCut and other button booleans
TextSelectionControls.handleCut and other button callbacks
buildToolbar

Timeline

References

Summary

Context

Previously, it was possible to disable buttons from the context menus using
TextSelectionControls, but any customization beyond that required copying and
editing hundreds of lines of custom classes in the framework. Now, all of this
has been replaced by a simple builder function, contextMenuBuilder, which
allows any Flutter widget to be used as a context menu.

Description of change