capture method
Implementation
Future<void> capture({
required String eventName,
Map<String, dynamic>? properties,
Map<String, dynamic>? options,
}) {
if (properties != null &&
!properties.containsKey('\$screen_name') &&
this.currentScreen != null) {
properties['\$screen_name'] = this.currentScreen;
}
return _posthog.capture(
eventName: eventName,
properties: properties,
options: options,
);
}