ServiceContainerException.circularDependencyResolution constructor

ServiceContainerException.circularDependencyResolution({
  1. required Type type,
  2. String? name,
})

Thrown when a circular dependency is detected during resolution.

Implementation

ServiceContainerException.circularDependencyResolution({
  required this.type,
  this.name,
}) : message =
         "Circular resolution of type($type)${name != null ? ' with name($name)' : ''}";