FdcGridRangeSelectionContextMenuBuilder typedef

FdcGridRangeSelectionContextMenuBuilder = List<FdcMenuEntry> Function(BuildContext context, FdcGridRangeSelectionContextMenuContext menuContext)

Builds menu entries for the current range-selection context.

Extension packages implement this callback and the grid invokes it when opening a range-selection context menu. context belongs to the active grid widget tree; menuContext exposes current command availability and host-provided copy/paste actions. Return entries in display order. Returning an empty list contributes no range-selection menu items. Exceptions propagate to the menu-building caller.

This typedef is part of the stable fdc_ext.dart extension seam.

Implementation

typedef FdcGridRangeSelectionContextMenuBuilder =
    List<FdcMenuEntry> Function(
      BuildContext context,
      FdcGridRangeSelectionContextMenuContext menuContext,
    );