isEnumType function

bool isEnumType (DartType t)

Implementation

bool isEnumType(DartType t) {
  if (t is InterfaceType) {
    return t.element.isEnum;
  }

  return false;
}