copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
StakeDiceState copyWith({
String? stateHash,
int? stakeGramAmount,
List<int>? suggestedStakeGramAmounts,
int? currentStreak,
List<int>? prizePerMille,
int? streakPrizePerMille,
dynamic extra,
int? clientId,
}) => StakeDiceState(
stateHash: stateHash ?? this.stateHash,
stakeGramAmount: stakeGramAmount ?? this.stakeGramAmount,
suggestedStakeGramAmounts:
suggestedStakeGramAmounts ?? this.suggestedStakeGramAmounts,
currentStreak: currentStreak ?? this.currentStreak,
prizePerMille: prizePerMille ?? this.prizePerMille,
streakPrizePerMille: streakPrizePerMille ?? this.streakPrizePerMille,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);