copyWith method

  1. @override
InputMessageDice copyWith({
  1. String? emoji,
  2. 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
InputMessageDice copyWith({
  String? emoji,
  bool? clearDraft,
}) =>
    InputMessageDice(
      emoji: emoji ?? this.emoji,
      clearDraft: clearDraft ?? this.clearDraft,
    );