Consent class

Consent gate. Mirrors createConsent from @refraction-ui/analytics.

Implemented types

Constructors

Consent(ConsentConfig? config)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strict → bool
True when at least one sink could receive (used by strict mode).
final

Methods

allows(List<String>? required) → bool
True when every required category is granted (empty list ⇒ allowed).
grant(List<String> categories) → void
override
granted() → List<String>
override
isGranted(String category) → bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke(List<String> categories) → void
override
toString() → String
A string representation of this object.
inherited

Operators

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