FdcSearchFieldTextFormatter typedef

FdcSearchFieldTextFormatter = String Function(Object? value)

Converts a field value into searchable text for prepared dataset search.

Dataset search preparation calls this formatter for values of the field it is registered against. Implementations should return deterministic user-facing text suitable for the configured search semantics. The input may be null; exceptions are not converted to non-matches and therefore propagate to the caller.

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

Implementation

typedef FdcSearchFieldTextFormatter = String Function(Object? value);