EventSpa.screenView constructor

EventSpa.screenView({
  1. required String pageLocation,
  2. required String pageReferrer,
})

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

Implementation

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