isEnum property

bool isEnum

Implementation

bool get isEnum {
  return targetType is InterfaceType && (targetType as InterfaceType).element is EnumElement;
}