copyWith method

StakeDiceState copyWith({
  1. String? stateHash,
  2. int? stakeGramAmount,
  3. List<int>? suggestedStakeGramAmounts,
  4. int? currentStreak,
  5. List<int>? prizePerMille,
  6. int? streakPrizePerMille,
})

Implementation

StakeDiceState copyWith({
  String? stateHash,
  int? stakeGramAmount,
  List<int>? suggestedStakeGramAmounts,
  int? currentStreak,
  List<int>? prizePerMille,
  int? streakPrizePerMille,
}) => 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,
);