isEnumType static method

bool isEnumType(
  1. DartType type
)

Checks if the given DartType is an enum.

Implementation

static bool isEnumType(DartType type) {
  return type is InterfaceType &&
      type.element is EnumElement;
}