unregisterOptions method

Future<void> unregisterOptions(
  1. String key
)

Removes an option registered with registerOptions. Events captured afterwards no longer get it, unless they pass it in their own options.

await Posthog().unregisterOptions('cookieless_mode');

Returns a Future that completes when the option has been removed.

Implementation

Future<void> unregisterOptions(String key) => _posthog.unregisterOptions(key);