BuildContext

context

return

TextField

controller:

_controller

maxLines:

minLines:

contextMenuBuilder:

context

editableTextState

return

_MyContextMenu

anchor:

editableTextState

contextMenuAnchors

primaryAnchor

children:

AdaptiveTextSelectionToolbar

getAdaptiveButtons

context

editableTextState

contextMenuButtonItems

toList

(),

);

},

);

A full example of building a custom context menu can be found in the samples
repository in
cutom_menu_page.dart
on GitHub.