Convert<S, T> constructor

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

Convert(this.convertSource, {this.convertTarget, Type? sourceType, Type? targetType}) : sourceType = sourceType ?? S,  targetType = targetType ?? T;