hasExplicitPresence function

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

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;
}