copyWith method
Copy model with modified properties.
Properties:
chat_id
: Chat identifiermessage_id
: Message identifieris_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,
);