toPolymorphic method
Constructs a PolymorphicKind for this kind.
If this is already a PolymorphicKind, returns this
.
Implementation
PolymorphicKind<T> toPolymorphic() {
return PolymorphicKind<T>(
name: name,
defaultKinds: [this],
);
}