copyWithWrapped method

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

Implementation

UserInfoModel copyWithWrapped(
    {Wrapped<String?>? addedBy, Wrapped<List<String>?>? associatedUsers}) {
  return UserInfoModel(
      addedBy: (addedBy != null ? addedBy.value : this.addedBy),
      associatedUsers: (associatedUsers != null
          ? associatedUsers.value
          : this.associatedUsers));
}