isMapped<T> method
Returns true if the given type has been mapped. Optionally give it a named key.
Implementation
bool isMapped<T>({
String? key,
}) {
final objectKey = _makeKey(T, key);
return _factories.containsKey(objectKey);
}