isSubtypeOf method
Checks if this type is a subtype of other.
Implementation
@override
bool isSubtypeOf(RuntimeType other, {Object? value}) {
// Extension types are subtypes of their representation type
if (other == this) return true;
if (representationType != null) {
return representationType!.isSubtypeOf(other, value: value);
}
return false;
}