loadRewardsAsync method
refreshRewards as a result: the rewards screen reads page.url from
it and needs the campaign designs loaded before a game can open. The
load coalesces with an in-flight refresh; a caller that stops waiting
does not cancel it. Null with no user or on a failed fetch. Never
throws. Port of Android's loadRewardsAsync.
Implementation
Future<GameRewardsResponse?> loadRewardsAsync() async {
try {
await refreshRewards();
} catch (_) {}
return rewardsResponse;
}