isEnum property

bool get isEnum

Implementation

bool get isEnum => enumValues.isNotEmpty && (type == 'enum' || type == 'enum?');