copyWith method
MessageStakeDice
copyWith({
- DiceStickers? initialState()?,
- DiceStickers? finalState()?,
- int? value,
- int? stakeGramAmount,
- 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,
);