hasSuperClass method
Implementation
bool hasSuperClass(final String superClass) {
return allSupertypes.indexWhere(
(final type) =>
type.getDisplayString(
withNullability: false,
) ==
superClass,
) >=
0;
}