copyWith method

DeviceModel copyWith({
  1. String? website,
  2. String? wikiLink,
  3. String? make,
  4. String? model,
  5. String? version,
  6. List<Parameter>? parameters,
  7. String? id,
  8. String? $id,
  9. int? cstamp,
  10. String? cby,
  11. String? uby,
  12. int? ustamp,
  13. String? name,
  14. String? icon,
  15. String? description,
  16. List<String>? images,
})

Implementation

DeviceModel copyWith(
    {String? website,
    String? wikiLink,
    String? make,
    String? model,
    String? version,
    List<Parameter>? parameters,
    String? id,
    String? $id,
    int? cstamp,
    String? cby,
    String? uby,
    int? ustamp,
    String? name,
    String? icon,
    String? description,
    String? logo,
    List<String>? images}) {
  return DeviceModel(
      website: website ?? this.website,
      wikiLink: wikiLink ?? this.wikiLink,
      make: make ?? this.make,
      model: model ?? this.model,
      version: version ?? this.version,
      parameters: parameters ?? this.parameters,
      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);
}