copyWith method

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

Implementation

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