ConsentStatus enum

Contains all possible consent status.

Inheritance

Constructors

ConsentStatus({required int androidValue, required int iosValue})
Creates a new consent status instance.
const
ConsentStatus.oneValue({required int value})
Creates a new consent status instance.
const

Values

unknown → const ConsentStatus

Consent status is unknown.

const ConsentStatus.oneValue(value: 0)
notRequired → const ConsentStatus

Consent is not required for this user.

const ConsentStatus(androidValue: 1, iosValue: 2)
required → const ConsentStatus

Consent is required for this user.

const ConsentStatus(androidValue: 2, iosValue: 1)
obtained → const ConsentStatus

Consent has been obtained for this user.

const ConsentStatus.oneValue(value: 3)

Properties

androidValue int
The Android value.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
iosValue int
The iOS value.
final
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

fromValue(int value, bool isAndroid) ConsentStatus
Returns the consent status associated with the specified value.

Constants

values → const List<ConsentStatus>
A constant List of the values in this enum, in order of their declaration.