hasExplicitPresence function
True when the field tracks presence (EXPLICIT or LEGACY_REQUIRED).
Implementation
bool hasExplicitPresence(Map<String, String> features) {
final presence = features[featureFieldPresence];
return presence == fieldPresenceExplicit ||
presence == fieldPresenceLegacyRequired;
}