copyWith method

ChatFolderInfo copyWith({
  1. int? id,
  2. String? title,
  3. ChatFolderIcon? icon,
  4. bool? isShareable,
  5. bool? hasMyInviteLinks,
  6. dynamic extra,
  7. int? clientId,
})

Implementation

ChatFolderInfo copyWith({
  int? id,
  String? title,
  ChatFolderIcon? icon,
  bool? isShareable,
  bool? hasMyInviteLinks,
  dynamic extra,
  int? clientId,
}) =>
    ChatFolderInfo(
      id: id ?? this.id,
      title: title ?? this.title,
      icon: icon ?? this.icon,
      isShareable: isShareable ?? this.isShareable,
      hasMyInviteLinks: hasMyInviteLinks ?? this.hasMyInviteLinks,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );