refreshRewards method
Fetches getRewards for the rewards page and widget. Calls coalesce
while one is in flight; a failure keeps the last response. Never throws.
Implementation
Future<void> refreshRewards() => _gamification.refreshRewards(
onHealth: (event) {
try {
final payload = CEPTriggerPayload(
cepCampaignId: 'rewards:refresh',
cepMetadata: const {},
campaignKey: '',
);
_events.toDigia(event, payload);
} catch (_) {}
},
);