capture method
Implementation
@override
Future<void> capture({
required String eventName,
Map<String, Object>? properties,
Map<String, Object>? userProperties,
Map<String, Object>? userPropertiesSetOnce,
Map<String, Object?>? options,
}) async {
final processedEvent = _runBeforeSend(
eventName,
_withWebContext(properties),
userProperties: userProperties,
userPropertiesSetOnce: userPropertiesSetOnce,
options: options,
);
if (processedEvent == null) {
printIfDebug('[PostHog] Event dropped by beforeSend: $eventName');
return;
}
return _sendCapture(processedEvent);
}