copyWith method

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

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

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