copyWithWrapped method

BaseEntity copyWithWrapped({
  1. Wrapped<String?>? name,
  2. Wrapped<String?>? icon,
  3. Wrapped<String?>? description,
  4. Wrapped<List<String>?>? images,
  5. Wrapped<String?>? id,
  6. Wrapped<String>? $id,
  7. Wrapped<int?>? cstamp,
  8. Wrapped<String?>? cby,
  9. Wrapped<String?>? uby,
  10. Wrapped<int?>? ustamp,
})

Implementation

BaseEntity copyWithWrapped(
    {Wrapped<String?>? name,
    Wrapped<String?>? icon,
    Wrapped<String?>? description,
    Wrapped<String?>? logo,
    Wrapped<List<String>?>? images,
    Wrapped<String?>? id,
    Wrapped<String>? $id,
    Wrapped<int?>? cstamp,
    Wrapped<String?>? cby,
    Wrapped<String?>? uby,
    Wrapped<int?>? ustamp}) {
  return BaseEntity(
      name: (name != null ? name.value : this.name),
      icon: (icon != null ? icon.value : this.icon),
      description:
          (description != null ? description.value : this.description),
      logo: (logo != null ? logo.value : this.logo),
      images: (images != null ? images.value : this.images),
      id: (id != null ? id.value : this.id),
      $id: ($id != null ? $id.value : this.$id),
      cstamp: (cstamp != null ? cstamp.value : this.cstamp),
      cby: (cby != null ? cby.value : this.cby),
      uby: (uby != null ? uby.value : this.uby),
      ustamp: (ustamp != null ? ustamp.value : this.ustamp));
}