userChange method

Future userChange(
  1. UserChangeModel user
)

Sends a USER_CHANGE event payload to the Segmentify API. The payload parameter is required and represents the event payload to be sent. Returns the response data. Throws an Exception if an error occurs while sending the event payload.

Implementation

Future<dynamic> userChange(UserChangeModel user) async {
  final payload = await userChangeEvent(user);
  final response = await _fireEvent(payload);
  return response;
}