EventSpa.screenView constructor

EventSpa.screenView(
  1. String pageLocation,
  2. String pageReferrer
)

Use this constructor is user open screen pageLocation is new screen uri pageReferrer is old screen uri

Implementation

EventSpa.screenView(
    String pageLocation,
    String pageReferrer,
    ) : this(
  eventType: "screen_view",
  customParam: {
    'page_location': pageLocation,
    'page_referrer': pageReferrer,
  },
);