isExactly method
Checks if types are exactly the same. Checks if types are exactly the same.
Returns true
if representing the exact same class as element
.
Implementation
/// {@macro type_equality}
///
/// Returns `true` if representing the exact same class as [element].
bool isExactly(Element element) {
if (element is InterfaceElement) {
return isExactlyType(element.thisType);
}
return false;
}