copyWith method

PinChatMessage copyWith({
  1. int? chatId,
  2. int? messageId,
  3. bool? disableNotification,
  4. bool? onlyForSelf,
})

Implementation

PinChatMessage copyWith({
  int? chatId,
  int? messageId,
  bool? disableNotification,
  bool? onlyForSelf,
}) =>
    PinChatMessage(
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      disableNotification: disableNotification ?? this.disableNotification,
      onlyForSelf: onlyForSelf ?? this.onlyForSelf,
    );