SmoothSelectionContextMenuBuilder typedef

SmoothSelectionContextMenuBuilder = Widget Function(BuildContext context, SmoothSelectionRegionState selectableRegionState)

Signature for building the text selection context menu of a SmoothSelectionRegion.

Unlike SelectableRegionContextMenuBuilder, the state passed in is a SmoothSelectionRegionState, which additionally exposes SmoothSelectionRegionState.dispatchEvent and SmoothSelectionRegionState.registrar for programmatic control.

Implementation

typedef SmoothSelectionContextMenuBuilder = Widget Function(
  BuildContext context,
  SmoothSelectionRegionState selectableRegionState,
);