isEnum property

bool get isEnum

Implementation

bool get isEnum =>
    targetType is InterfaceType && (targetType as InterfaceType).element is EnumElement;