# getDependencyComparator method

Comparator<Object>? getDependencyComparator()

Returns the dependency comparator used by this factory.

The comparator is used to determine the order of dependency resolution.

Returns the Comparator<Object> instance, or `null` if no comparator is set

Example:

    final comparator = factory.getDependencyComparator();

## Implementation

    Comparator<Object>? getDependencyComparator() => _dependencyComparator;