getSessionImpressionCount method

Future<int> getSessionImpressionCount(
  1. String impressionKey
)

Get impression count (persisted). Loads from storage on first call.

Implementation

Future<int> getSessionImpressionCount(String impressionKey) async {
  if (impressionKey.isEmpty) return 0;
  await _ensureLoaded();
  return _counts[impressionKey] ?? 0;
}