copyWithWrapped method

Owner copyWithWrapped({
  1. Wrapped<List<String>>? names,
  2. Wrapped<List<PhoneNumber>>? phoneNumbers,
  3. Wrapped<List<Email>>? emails,
  4. Wrapped<List<Address>>? addresses,
})

Implementation

Owner copyWithWrapped(
    {Wrapped<List<String>>? names,
    Wrapped<List<PhoneNumber>>? phoneNumbers,
    Wrapped<List<Email>>? emails,
    Wrapped<List<Address>>? addresses}) {
  return Owner(
      names: (names != null ? names.value : this.names),
      phoneNumbers:
          (phoneNumbers != null ? phoneNumbers.value : this.phoneNumbers),
      emails: (emails != null ? emails.value : this.emails),
      addresses: (addresses != null ? addresses.value : this.addresses));
}