copyWith method

SendQuickReplyShortcutMessages copyWith({
  1. int? chatId,
  2. int? shortcutId,
  3. int? sendingId,
})

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

Implementation

SendQuickReplyShortcutMessages copyWith({
  int? chatId,
  int? shortcutId,
  int? sendingId,
}) =>
    SendQuickReplyShortcutMessages(
      chatId: chatId ?? this.chatId,
      shortcutId: shortcutId ?? this.shortcutId,
      sendingId: sendingId ?? this.sendingId,
    );