matchingTypeOrSupertype abstract method

NamedDartType? matchingTypeOrSupertype(
  1. DartType typeRef
)

Finds a matching type or supertype for the given typeRef.

Returns the matching type if found, otherwise null.

Implementation

NamedDartType? matchingTypeOrSupertype(DartType typeRef);