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!.device.token = token;
  event.context = context;
  return event;
}