isAssignableFromResolvedPart method
Determines assignability from another ResolvableType up to unresolvable parts.
This method performs assignability checking but stops at unresolvable type variables or dynamic types, treating them as compatible. This is useful for partial type checking scenarios.
Parameters:
other
: The ResolvableType to check assignability from
Returns:
- true if assignable up to unresolvable parts
- false if definitely not assignable
Example:
final genericType = ResolvableType.forClass(List); // List<T> where T is unresolved
final stringListType = ResolvableType.forClass(List<String>);
// This might return true even if full resolution would fail
print(genericType.isAssignableFromResolvedPart(stringListType));
Implementation
bool isAssignableFromResolvedPart(ResolvableType other) {
return isAssignableFrom(other, false, null, true);
}