BeforeSendCallback typedef
BeforeSendCallback =
FutureOr<SentryEvent?> Function(SentryEvent event, Hint hint)
This function is called with an SDK specific event object and can return a modified event object or nothing to skip reporting the event
Implementation
typedef BeforeSendCallback = FutureOr<SentryEvent?> Function(
SentryEvent event,
Hint hint,
);