copyWith method
ChatFolderInfo
copyWith({
- int? id,
- ChatFolderName? name,
- ChatFolderIcon? icon,
- int? colorId,
- bool? hasMyInviteLinks,
- dynamic extra,
- 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,
);