$isEnum method

bool $isEnum(
  1. InterfaceType type
)

Implementation

bool $isEnum(InterfaceType type) =>
    type.element is EnumElement || type.element.kind == ElementKind.ENUM;