FdcGridRangeSelectionPastePlan typedef

FdcGridRangeSelectionPastePlan = ({String? errorText, List<FdcGridRangeSelectionPasteUpdate> updates})

Result of validating clipboard content against the current selected range.

Range-selection session implementations return this record to the grid host. On success, updates contains the ordered cell assignments to apply and errorText is null. On validation failure, errorText describes the failure and updates must not contain assignments that the host should apply. A session may instead return null from readClipboardPastePlan when clipboard content is absent or cannot produce any applicable operation.

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

Implementation

typedef FdcGridRangeSelectionPastePlan = ({
  List<FdcGridRangeSelectionPasteUpdate> updates,
  String? errorText,
});