extends

MaterialTextSelectionControls

@override

Widget

buildToolbar

BuildContext

context

Rect

globalEditableRegion

double

textLineHeight

Offset

selectionMidpoint

List

TextSelectionPoint

endpoints

TextSelectionDelegate

delegate

ClipboardStatusNotifier

clipboardStatus

Offset

lastSecondaryTapDownPosition

return

_MyCustomToolbar

();

},

Now you can simply use contextMenuBuilder directly as a parameter to
TextField (and others). The information provided in the parameters to
buildToolbar can be obtained from the EditableTextState that is passed to
contextMenuBuilder.