copyWith method

GetChatRevenueStatistics copyWith({
  1. int? chatId,
  2. bool? isDark,
})

Copy model with modified properties.

Properties:

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

Implementation

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