execute method

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

Implementation

@override
Future<RawEvent?> execute(RawEvent event) {
  switch (event.type) {
    case EventType.identify:
      return identify(event as IdentifyEvent);
    case EventType.track:
      return track(event as TrackEvent);
    case EventType.screen:
      return screen(event as ScreenEvent);
    case EventType.alias:
      return alias(event as AliasEvent);
    case EventType.group:
      return group(event as GroupEvent);
  }
}