copyWith method

UserInfoModel copyWith({
  1. String? addedBy,
  2. List<String>? associatedUsers,
})

Implementation

UserInfoModel copyWith({String? addedBy, List<String>? associatedUsers}) {
  return UserInfoModel(
      addedBy: addedBy ?? this.addedBy,
      associatedUsers: associatedUsers ?? this.associatedUsers);
}