copyWith method

DraftMessage copyWith({
  1. int? replyToMessageId,
  2. int? date,
  3. InputMessageContent? inputMessageText,
})

Implementation

DraftMessage copyWith({
  int? replyToMessageId,
  int? date,
  InputMessageContent? inputMessageText,
}) => DraftMessage(
  replyToMessageId: replyToMessageId ?? this.replyToMessageId,
  date: date ?? this.date,
  inputMessageText: inputMessageText ?? this.inputMessageText,
);