Convert<S, T> constructor

const Convert<S, T>({
  1. Converter<S, T>? convertSource,
  2. Converter<T, S>? convertTarget,
  3. Type? sourceType,
  4. Type? targetType,
})

Create a new Convert instance convert the Converter

Implementation

const Convert({Converter<S, T>? convertSource,  Converter<T, S>? convertTarget, Type? sourceType, Type? targetType})
    : sourceType = sourceType ?? S, targetType = targetType ?? T,
      convertSourceFunc = convertSource,
      convertTargetFunc = convertTarget;