copyWith method

AddQuickReplyShortcutMessage copyWith({
  1. String? shortcutName,
  2. int? replyToMessageId,
  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

AddQuickReplyShortcutMessage copyWith({
  String? shortcutName,
  int? replyToMessageId,
  InputMessageContent? inputMessageContent,
}) => AddQuickReplyShortcutMessage(
  shortcutName: shortcutName ?? this.shortcutName,
  replyToMessageId: replyToMessageId ?? this.replyToMessageId,
  inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);