SimpleConverter<T> constructor
Create a new SimpleConverter.
If you want this instance to be const
(for use with @UseConverter), provider
and
stringify
must be top-level or static functions. Function literals are not const
, so they
cannot be used in a constant creation expression.
Implementation
const factory SimpleConverter({
required FutureOr<Iterable<T>> Function(ContextData) provider,
required String Function(T) stringify,
int sensitivity,
T? Function(StringView, ContextData) reviver,
}) = _DynamicSimpleConverter<T>;