copyWith method
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,
String? title,
ChatFolderIcon? icon,
int? colorId,
bool? isShareable,
bool? hasMyInviteLinks,
dynamic extra,
int? clientId,
}) =>
ChatFolderInfo(
id: id ?? this.id,
title: title ?? this.title,
icon: icon ?? this.icon,
colorId: colorId ?? this.colorId,
isShareable: isShareable ?? this.isShareable,
hasMyInviteLinks: hasMyInviteLinks ?? this.hasMyInviteLinks,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);