BloomFilter.empty constructor

BloomFilter.empty()

Creates an empty Bloom filter that accepts everything.

Used as a fallback when no filter is available (e.g., first encounter or timeout). mightContain() always returns false.

Implementation

factory BloomFilter.empty() {
  return BloomFilter._(
    bits: Uint8List(0),
    bitCount: 0,
    hashCount: 0,
  );
}