isEnum function

bool isEnum(
  1. DartType type
)

Implementation

bool isEnum(DartType type) {
  final element = type.element;
  if (element is ClassElement) {
    return element.isEnum;
  }
  return false;
}