copyWith method

  1. @override
MessageStakeDice copyWith({
  1. DiceStickers? initialState()?,
  2. DiceStickers? finalState()?,
  3. int? value,
  4. int? stakeGramAmount,
  5. int? prizeGramAmount,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
MessageStakeDice copyWith({
  DiceStickers? Function()? initialState,
  DiceStickers? Function()? finalState,
  int? value,
  int? stakeGramAmount,
  int? prizeGramAmount,
}) => MessageStakeDice(
  initialState: initialState != null ? initialState() : this.initialState,
  finalState: finalState != null ? finalState() : this.finalState,
  value: value ?? this.value,
  stakeGramAmount: stakeGramAmount ?? this.stakeGramAmount,
  prizeGramAmount: prizeGramAmount ?? this.prizeGramAmount,
);