lookup static method

String? lookup(
  1. String campaignKey,
  2. String chanceId
)

The cached answer JSON for (campaignKey, chanceId), or null when no played answer was recorded for that chance. The host's init builder calls this when building GameInitPayload.chanceStateJson, so the skin can skip its open-time state call.

Implementation

static String? lookup(String campaignKey, String chanceId) {
  if (chanceId.trim().isEmpty) return null;
  return _byChance[_key(campaignKey, chanceId)];
}