logScreenView static method

Future<void> logScreenView({
  1. String? screenClass,
  2. String? screenName,
})

Screen View event. This event signifies a screen view. Use this when a screen transition occurs.

screenClass: Current screen class

screenName: Current screen name

Implementation

static Future<void> logScreenView({
  String? screenClass,
  String? screenName,
}) {
  return logEvent(name: 'screen_view', params: {
    'screenClass': screenClass,
    'screenName': screenName,
  });
}