copyWith method

EditQuickReplyMessage copyWith({
  1. int? shortcutId,
  2. int? messageId,
  3. InputMessageContent? inputMessageContent,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

EditQuickReplyMessage copyWith({
  int? shortcutId,
  int? messageId,
  InputMessageContent? inputMessageContent,
}) => EditQuickReplyMessage(
  shortcutId: shortcutId ?? this.shortcutId,
  messageId: messageId ?? this.messageId,
  inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);