withConverter method

Converter withConverter(
  1. DynamicConverter converter
)

Applies a custom transformation to the value before any conversion attempt.

The converter function is called with the current value, and its result is used for subsequent operations.

Implementation

Converter withConverter(DynamicConverter<dynamic> converter) => Converter(
  _value,
  defaultValue: _defaultValue,
  customConverter: converter,
);