PrivacyZoneService constructor
Creates a new PrivacyZoneService.
onPersist - Optional callback for persisting zones to storage.
seed - Optional random seed for deterministic testing.
Implementation
PrivacyZoneService({
Future<void> Function(List<PrivacyZone>)? onPersist,
int? seed,
}) : _onPersist = onPersist,
_random = seed != null ? math.Random(seed) : math.Random();