sameProviderIdentity function
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);
}