setServerAnonymisation static method
Sets whether server-side anonymisation is enabled for the tracker namespace.
This toggles the serverAnonymisation flag at runtime (the SP-Anonymous
header), without having to recreate the tracker. Not supported on Web.
Implementation
static Future<void> setServerAnonymisation(bool serverAnonymisation,
{required String tracker}) async {
await _channel.invokeMethod('setServerAnonymisation',
{'tracker': tracker, 'serverAnonymisation': serverAnonymisation});
}