copyWith method

  1. @override
InputMessageStakeDice copyWith({
  1. String? stateHash,
  2. int? stakeGramAmount,
  3. bool? clearDraft,
})
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
InputMessageStakeDice copyWith({
  String? stateHash,
  int? stakeGramAmount,
  bool? clearDraft,
}) => InputMessageStakeDice(
  stateHash: stateHash ?? this.stateHash,
  stakeGramAmount: stakeGramAmount ?? this.stakeGramAmount,
  clearDraft: clearDraft ?? this.clearDraft,
);