EventCallback typedef
Callback function type for logging events and analytics.
This callback is used to capture SDK events for logging, analytics, or debugging purposes.
Parameters
event
: The name or type of the eventparam
: Additional parameters and data related to the event
Usage Example
EventCallback logger = (String event, Map<String, dynamic> param) {
print('SDK Event: \$event');
analyticsService.track(event, param);
};
Implementation
typedef EventCallback = void Function(String event, Map<String, dynamic> param);