copyWithWrapped method

Email copyWithWrapped({
  1. Wrapped<String>? data,
  2. Wrapped<bool>? primary,
  3. Wrapped<EmailType>? type,
})

Implementation

Email copyWithWrapped(
    {Wrapped<String>? data,
    Wrapped<bool>? primary,
    Wrapped<enums.EmailType>? type}) {
  return Email(
      data: (data != null ? data.value : this.data),
      primary: (primary != null ? primary.value : this.primary),
      type: (type != null ? type.value : this.type));
}