driving_consent 0.4.2 copy "driving_consent: ^0.4.2" to clipboard
driving_consent: ^0.4.2 copied to clipboard

Privacy-first per-purpose consent gate where UNKNOWN equals DENIED. GDPR / CCPA / APPI-ready, pluggable storage. Pure Dart.

example/main.dart

import 'package:driving_consent/driving_consent.dart';

Future<void> main() async {
  final service = InMemoryConsentService();

  final initial = await service.getConsent(ConsentPurpose.fleetLocation);
  print(
    'initial: ${initial.status.name} '
    '(effective=${initial.isEffectivelyGranted})',
  );

  await service.grant(ConsentPurpose.fleetLocation, Jurisdiction.appi);
  final granted = await service.getConsent(ConsentPurpose.fleetLocation);
  print(
    'after grant: ${granted.status.name} '
    '(effective=${granted.isEffectivelyGranted})',
  );

  await service.revoke(ConsentPurpose.fleetLocation);
  final revoked = await service.getConsent(ConsentPurpose.fleetLocation);
  print(
    'after revoke: ${revoked.status.name} '
    '(effective=${revoked.isEffectivelyGranted})',
  );

  await service.dispose();
}
0
likes
160
points
189
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Privacy-first per-purpose consent gate where UNKNOWN equals DENIED. GDPR / CCPA / APPI-ready, pluggable storage. Pure Dart.

Repository (GitHub)
View/report issues
Contributing

Topics

#consent #privacy #gdpr #automotive #navigation

License

BSD-3-Clause (license)

Dependencies

equatable

More

Packages that depend on driving_consent