copyWith method

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

Implementation

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