DVConsentPolicy class final

The declared categories, and the version somebody set for them.

Constructors

DVConsentPolicy({required String version, required List<DVConsentDeclaration> categories})
DVConsentPolicy.fromConfig(Map<String, Object?> consent)
Reads dartvel.analytics.consent from pubspec.yaml.
factory

Properties

askable → Iterable<DVConsentDeclaration>
The categories somebody can be asked about.
no setter
categories → List<DVConsentDeclaration>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String
final

Methods

check({required List<DVConsentTarget> targets}) → List<DVAnalyticsFinding>
DV-ANALYTICS-002 for every declared category with no way to ask on a target the application builds for.
declaration(DVConsentCategory category) → DVConsentDeclaration?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited