Migration guide

In general, any previous changes to context menus that have been deprecated now
require the use of the contextMenuBuilder parameter on the relevant
text-editing or text-selection widget (
on TextField,
for example). Return a built-in context menu widget like
AdaptiveTextSelectionToolbar
to use Flutter’s built-in context menus, or return your own widget for something
totally custom.

To transition to contextMenuBuilder, the following parameters and classes have
been deprecated.

ToolbarOptions

This class was previously used to explicitly enable or disable certain buttons
in a context menu. Before this change, you might have passed it into TextField
or other widgets like this:

// Deprecated.

TextField

toolbarOptions:

ToolbarOptions

copy:

true

),