copyWith method
MessageDice
copyWith({
- DiceStickers? initialState()?,
- DiceStickers? finalState()?,
- String? emoji,
- int? value,
- int? successAnimationFrameNumber,
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
MessageDice copyWith({
DiceStickers? Function()? initialState,
DiceStickers? Function()? finalState,
String? emoji,
int? value,
int? successAnimationFrameNumber,
}) =>
MessageDice(
initialState: initialState != null ? initialState() : this.initialState,
finalState: finalState != null ? finalState() : this.finalState,
emoji: emoji ?? this.emoji,
value: value ?? this.value,
successAnimationFrameNumber:
successAnimationFrameNumber ?? this.successAnimationFrameNumber,
);