DataCollectionItem class
A single data type collected by an SDK, matching the YAML shape in the PRD.
Constructors
- DataCollectionItem({required String type, required String purpose, required bool optional, bool linkedToIdentity = true})
-
const
- DataCollectionItem.fromYaml(YamlMap map)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- linkedToIdentity → bool
-
Whether this data type is linked to the user's identity (Apple
NSPrivacyCollectedDataTypeLinked). Defaults totruewhen omitted in YAML — most real-account data is identity-linked; setfalseexplicitly.final - optional → bool
-
final
- purpose → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
- type → String
-
final
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.
override