buildToolbarWithActions abstract method

Widget buildToolbarWithActions(
  1. BuildContext context,
  2. Rect globalEditableRegion,
  3. double textLineHeight,
  4. Offset position,
  5. List<TextSelectionPoint> endpoints,
  6. TextSelectionDelegate delegate,
  7. ClipboardStatusNotifier clipboardStatus,
  8. Offset? lastSecondaryTapDownPosition,
  9. {List<CreamyTextSelectionToolbarAction> actions}
)

Build a toolbar which supports actions.

CreamyTextSelectionControlsProvider uses this to create toolbar with actions.

This callback is also called by the buildToolbar to create a toolbar without actions.

Implementation

Widget buildToolbarWithActions(
  BuildContext context,
  Rect globalEditableRegion,
  double textLineHeight,
  Offset position,
  List<TextSelectionPoint> endpoints,
  TextSelectionDelegate delegate,
  ClipboardStatusNotifier clipboardStatus,
  Offset? lastSecondaryTapDownPosition, {
  List<CreamyTextSelectionToolbarAction> actions,
});