isEnumType function

bool isEnumType(
  1. DartType t
)

Implementation

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

  return false;
}