addGlobalContexts static method

Future<void> addGlobalContexts(
  1. String tag,
  2. SelfDescribing context, {
  3. required String tracker,
})

Adds a global context with the given tag to be attached to all tracked events for the tracker namespace.

Implementation

static Future<void> addGlobalContexts(String tag, SelfDescribing context,
    {required String tracker}) async {
  await _channel.invokeMethod('addGlobalContexts', {
    'tracker': tracker,
    'tag': tag,
    'context': context.toMap(),
  });
}