copyWith method
Community
copyWith({
- int? id,
- bool? haveAccess,
- String? name,
- ChatPhotoInfo? photo,
- int? date,
- CommunityMemberStatus? status,
- CommunityPermissions? permissions,
Implementation
Community copyWith({
int? id,
bool? haveAccess,
String? name,
ChatPhotoInfo? photo,
int? date,
CommunityMemberStatus? status,
CommunityPermissions? permissions,
}) => Community(
id: id ?? this.id,
haveAccess: haveAccess ?? this.haveAccess,
name: name ?? this.name,
photo: photo ?? this.photo,
date: date ?? this.date,
status: status ?? this.status,
permissions: permissions ?? this.permissions,
);