reviver property

(T? Function(StringView, ContextData)?) reviver
final

A function called if this converter fails to convert the input.

You can provide additional logic here to convert inputs that would otherwise fail. When this function is called, it can either return an instance of T which will be returned from this converter or null, in which case the converter will fail.

Implementation

final T? Function(StringView, ContextData)? reviver;