isEnum property

bool isEnum

Implementation

bool get isEnum {
  final myType = this;
  return myType is InterfaceType && myType.element is EnumElement;
}