copyWith method

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

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,
);