forClassWithImplementation static method

ResolvableType forClassWithImplementation(
  1. Type baseType,
  2. Type implementationClass
)

Implementation

static ResolvableType forClassWithImplementation(Type baseType, Type implementationClass) {
  final asType = forType(implementationClass).as(baseType);
  return asType != NONE ? asType : forType(baseType);
}