copyWith method

Alarm copyWith({
  1. String? name,
  2. String? description,
  3. String? deviceModelId,
  4. String? activeIcon,
  5. String? inactiveIcon,
  6. List<MatchGroup>? conditions,
  7. String? id,
  8. String? $id,
  9. int? cstamp,
  10. String? cby,
  11. String? uby,
  12. int? ustamp,
})

Implementation

Alarm copyWith(
    {String? name,
    String? description,
    String? deviceModelId,
    String? activeIcon,
    String? inactiveIcon,
    List<MatchGroup>? conditions,
    String? id,
    String? $id,
    int? cstamp,
    String? cby,
    String? uby,
    int? ustamp}) {
  return Alarm(
      name: name ?? this.name,
      description: description ?? this.description,
      deviceModelId: deviceModelId ?? this.deviceModelId,
      activeIcon: activeIcon ?? this.activeIcon,
      inactiveIcon: inactiveIcon ?? this.inactiveIcon,
      conditions: conditions ?? this.conditions,
      id: id ?? this.id,
      $id: $id ?? this.$id,
      cstamp: cstamp ?? this.cstamp,
      cby: cby ?? this.cby,
      uby: uby ?? this.uby,
      ustamp: ustamp ?? this.ustamp);
}