FdcGridRangeSelectionCellTextParser typedef

FdcGridRangeSelectionCellTextParser = ({String? errorText, Object? value}) Function(int rowIndex, int columnIndex, String text)

Parses clipboard text into a value suitable for one destination grid cell.

The grid host supplies this parser and the range-selection session calls it during paste-plan validation. Indexes are zero-based data-row and source-column coordinates. Return a parsed value with errorText == null on success. Return a non-null errorText when the text cannot be applied to that cell; value may be null because null is also a valid parsed field value. The session must not include failed parses in an applicable update plan. Exceptions are not converted to validation errors and therefore propagate to the caller.

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

Implementation

typedef FdcGridRangeSelectionCellTextParser =
    ({Object? value, String? errorText}) Function(
      int rowIndex,
      int columnIndex,
      String text,
    );