execute method

  1. @override
Future<RawEvent> execute(
  1. RawEvent event
)
override

Implementation

@override
Future<RawEvent> execute(RawEvent event) async {
  // We need to get the Context in a concurrency safe mode to permit changes to make it in before we retrieve it
  final context = await analytics!.state.context.state;
  context!.instanceId = instanceId;
  context.library = ContextLibrary("events-sdk-flutter", Analytics.version());
  event.context = context;
  return event;
}