viewed static method

GameViewedEvent viewed({
  1. required String chanceId,
  2. required String skinId,
  3. required int skinVersion,
  4. String entry = '',
  5. bool warm = false,
  6. String tier = '',
  7. int msToReady = -1,
})

Builds the Viewed event for one showing: once per open, on the first ready. Carries where the game opened from, whether the skin served from the cache, the device tier, and the trigger-to-ready time.

Implementation

static GameViewedEvent viewed({
  required String chanceId,
  required String skinId,
  required int skinVersion,
  String entry = '',
  bool warm = false,
  String tier = '',
  int msToReady = -1,
}) =>
    GameViewedEvent(
      chanceId,
      skinId,
      skinVersion,
      entry: entry,
      warm: warm,
      tier: tier,
      msToReady: msToReady,
    );