widgetContent static method

GameRewardsWidgetContent widgetContent({
  1. required List<GameRewardChance> chances,
  2. GameRewardsWidget? widget,
})

The widget content, hidden when the backend hides it or sends anything unknown.

Implementation

static GameRewardsWidgetContent widgetContent({
  required List<GameRewardChance> chances,
  GameRewardsWidget? widget,
}) =>
    widget?.content ?? const GameRewardsHiddenContent();