isBlockedByCidString method
- String cidStr
Returns true if the CID string is blocked.
Implementation
bool isBlockedByCidString(String cidStr) {
if (!_config.enableDenylist) return false;
try {
final cid = CID.decode(cidStr);
if (isBlocked(cid)) {
return true;
}
} catch (_) {
// Fall through to the literal check below.
}
return _snapshot.cidStrings.contains(cidStr);
}