copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputMessageStakeDice copyWith({
String? stateHash,
int? stakeGramAmount,
bool? clearDraft,
}) => InputMessageStakeDice(
stateHash: stateHash ?? this.stateHash,
stakeGramAmount: stakeGramAmount ?? this.stakeGramAmount,
clearDraft: clearDraft ?? this.clearDraft,
);