copyWith method

GetMessageStatistics copyWith({
  1. int? chatId,
  2. int? messageId,
  3. bool? isDark,
})

Copy model with modified properties.

Properties:

  • chat_id: Chat identifier
  • message_id: Message identifier
  • is_dark: Pass true if a dark theme is used by the application

Implementation

GetMessageStatistics copyWith({
  int? chatId,
  int? messageId,
  bool? isDark,
}) =>
    GetMessageStatistics(
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      isDark: isDark ?? this.isDark,
    );