copyWith method

SharedChat copyWith({
  1. int? chatId,
  2. String? title,
  3. String? username,
  4. Photo? photo,
})

Implementation

SharedChat copyWith({
  int? chatId,
  String? title,
  String? username,
  Photo? photo,
}) =>
    SharedChat(
      chatId: chatId ?? this.chatId,
      title: title ?? this.title,
      username: username ?? this.username,
      photo: photo ?? this.photo,
    );