isEnum property

bool get isEnum

Implementation

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