removeConvertible<T> method

  1. @override
void removeConvertible<T>()
override

Removes every converter targeting T and T?, whatever its source, for example to replace a default converter. A value that already is a T still converts to itself.

Spring's removeConvertible(Class, Class) also takes the source type.

Implementation

@override
void removeConvertible<T>() {
  _targets[T]?.converters.clear();
  _targets[_typeOf<T?>()]?.converters.clear();
}