Consent class
Consent gate. Mirrors createConsent from @refraction-ui/analytics.
- Implemented types
Constructors
- Consent(ConsentConfig? config)
Properties
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