setPrivacyLegislation static method

Future setPrivacyLegislation(
  1. String legislation
)

Sets the privacy legislation for the current profile asynchronously.

Privacy legislation determines which privacy laws apply to the current user (e.g., 'GDPR', 'CCPA'). This affects how consent is handled and what data processing is allowed.

legislation The privacy legislation code (e.g., 'GDPR', 'CCPA') Returns a Future<dynamic> that completes when the operation is done

Implementation

static Future<dynamic> setPrivacyLegislation(String legislation) {
  return BlueConicPlatform.instance.setPrivacyLegislation(legislation);
}