typeIsEnum property

bool typeIsEnum

Returns true when the field is an enum

Implementation

bool get typeIsEnum => fieldElementType.element!.kind == ElementKind.ENUM;