isMapped<T> method

bool isMapped<T>({
  1. String? key,
})

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);
}