EventSpa.screenView constructor
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,
},
);