GdprService class

Shows the GDPR user consent form if necessary.

Also allows for updating or reseting it.

Constructors

GdprService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

getConsentStatus() Future<GdprConsentStatus>
Returns the current consent status.
isUserUnderGdpr() Future<bool>
Wether the user is under the GDPR.
requestConsentForm({GdprDebugGeography debugGeography = GdprDebugGeography.disabled, List<String>? testIdentifiers}) Future<GdprResult>
Shows or shows not a consent form. Returns FormError of consent could not get loaded via the internet or was not given by user.
resetConsentForm() Future<void>
/ Allows user to reset GDPR consent.
updateConsentForm({List<String>? testIdentifiers}) Future<GdprResult>
Allows user to update GDPR consent.