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 sharedWithThirdParties, 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 to true when omitted in YAML — most real-account data is identity-linked; set false explicitly.
final
optional bool
final
purpose String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedWithThirdParties bool
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