trackEvents method
Sends a request to track events (e.g., user actions or transaction events).
eventDetails
: The details of the event to track.
Returns an http.Response
from the API.
Implementation
Future<http.Response> trackEvents(Map<String, dynamic> eventDetails) {
return makeApiRequest(ApiEndpoints.trackEvents, eventDetails, 'POST');
}