rewardsCode property

String get rewardsCode

The game_rewards_failed code for this failure.

Implementation

String get rewardsCode => timedOut
    ? 'timeout'
    : switch (failure) {
        GameOutcomeFailure.transport => 'network',
        GameOutcomeFailure.httpStatus => 'status',
        GameOutcomeFailure.invalidResponse => 'invalid_response',
      };