toPolymorphic method

PolymorphicKind<T> toPolymorphic()

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],
  );
}