canCut

()

false

See the previous section on ToolbarOptions for how to achieve a similar effect
with contextMenuBuilder.

TextSelectionControls.handleCut and other button callbacks

These functions allowed the modification of the callback called when the buttons
were pressed. Before this change, you might have been modifying context menu
button callbacks by overriding these handler methods like this:

// Deprecated.

class

_MyMaterialTextSelectionControls

extends

MaterialTextSelectionControls

@override

bool

handleCut

()

// My custom cut implementation here.

},

This is still possible using contextMenuBuilder, including calling
out to the original buttons’ actions in the custom handler, using toolbar
widgets like AdaptiveTextSelectionToolbar.buttonItems.