copyWith method

Community copyWith({
  1. int? id,
  2. bool? haveAccess,
  3. String? name,
  4. ChatPhotoInfo? photo,
  5. int? date,
  6. CommunityMemberStatus? status,
  7. 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,
);