isClosedEnum function

bool isClosedEnum(
  1. Map<String, String> features
)

True when the enum is closed (unknown values routed to the unknown set).

Implementation

bool isClosedEnum(Map<String, String> features) {
  return features[featureEnumType] == enumTypeClosed;
}