reportScreenOpened static method

Future<void> reportScreenOpened(
  1. String screenName, {
  2. Map<String, Object>? attributes,
})

Report sceen change to implement Heatmaps functionality in UserX

Implementation

static Future<void> reportScreenOpened(String screenName, {Map<String, Object>? attributes}) async {
  if (_previousScreenName == screenName) return;
  _previousScreenName = screenName;
  reportEvent('$screenName, screen opened', attributes: attributes);
  UserX.addScreenName(screenName);
}