copyWith method

HomeV2 copyWith({
  1. int? id,
  2. String? name,
  3. WeatherConditionV2? weatherCondition,
  4. double? weatherTempF,
  5. WeatherTimePeriodV2? weatherTimePeriod,
  6. DeviceAddressV2? address,
  7. List<DeviceV2>? devices,
})

Implementation

HomeV2 copyWith(
    {int? id,
    String? name,
    enums.WeatherConditionV2? weatherCondition,
    double? weatherTempF,
    enums.WeatherTimePeriodV2? weatherTimePeriod,
    DeviceAddressV2? address,
    List<DeviceV2>? devices}) {
  return HomeV2(
      id: id ?? this.id,
      name: name ?? this.name,
      weatherCondition: weatherCondition ?? this.weatherCondition,
      weatherTempF: weatherTempF ?? this.weatherTempF,
      weatherTimePeriod: weatherTimePeriod ?? this.weatherTimePeriod,
      address: address ?? this.address,
      devices: devices ?? this.devices);
}