sameProviderIdentity function

bool sameProviderIdentity(
  1. String a,
  2. String activeProvider,
  3. String? activeName
)

Whether a names the same provider identity as the active one — the active custom entry's own name or the active (canonical) provider name.

Implementation

bool sameProviderIdentity(String a, String activeProvider, String? activeName) {
  if (_foldsTo(a, activeProvider)) return true;
  return activeName != null && _foldsTo(a, activeName);
}