Maps a field value to its masked replacement (e.g. (value) => '***').
value
(value) => '***'
typedef RedactMaskFn = String Function(Object? value);