copyWith method

ChatEventBackgroundChanged copyWith({
  1. ChatBackground? oldBackground,
  2. ChatBackground? newBackground,
})

Implementation

ChatEventBackgroundChanged copyWith({
  ChatBackground? oldBackground,
  ChatBackground? newBackground,
}) => ChatEventBackgroundChanged(
  oldBackground: oldBackground ?? this.oldBackground,
  newBackground: newBackground ?? this.newBackground,
);