pageView method

Future pageView(
  1. PageViewModel pageView
)

Sends a PAGE_VIEW 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> pageView(PageViewModel pageView) async {
  final payload = await pageViewEvent(pageView);
  final response = await _fireEvent(payload);
  return response;
}