copyWith method

SetChatBackground copyWith({
  1. int? chatId,
  2. InputBackground? background,
  3. BackgroundType? type,
  4. int? darkThemeDimming,
  5. bool? onlyForSelf,
})

Implementation

SetChatBackground copyWith({
  int? chatId,
  InputBackground? background,
  BackgroundType? type,
  int? darkThemeDimming,
  bool? onlyForSelf,
}) => SetChatBackground(
  chatId: chatId ?? this.chatId,
  background: background ?? this.background,
  type: type ?? this.type,
  darkThemeDimming: darkThemeDimming ?? this.darkThemeDimming,
  onlyForSelf: onlyForSelf ?? this.onlyForSelf,
);