captureEvent function
Captures a posthog event.
Implementation
Future<void> captureEvent(String eventName, {Map<String, Object>? properties}) {
final posthog = Modular.get<PostHog>();
return posthog.capture(eventName: eventName, properties: properties);
}