copyWith method
Event
copyWith({
- String? id,
- String? name,
- String? description,
- String? deviceModelId,
- String? icon,
- List<
MatchGroup> ? conditions, - List<
String> ? triggeredAlarms, - EmailTemplate? emailTemplate,
- SMSTemplate? smsTemplate,
- FCMTemplate? fcmTemplate,
- VoiceTemplate? voiceTemplate,
- String? $id,
- int? cstamp,
- String? cby,
- String? uby,
- int? ustamp,
Implementation
Event copyWith(
{String? id,
String? name,
String? description,
String? deviceModelId,
String? icon,
List<MatchGroup>? conditions,
List<String>? triggeredAlarms,
EmailTemplate? emailTemplate,
SMSTemplate? smsTemplate,
FCMTemplate? fcmTemplate,
VoiceTemplate? voiceTemplate,
String? $id,
int? cstamp,
String? cby,
String? uby,
int? ustamp}) {
return Event(
id: id ?? this.id,
name: name ?? this.name,
description: description ?? this.description,
deviceModelId: deviceModelId ?? this.deviceModelId,
icon: icon ?? this.icon,
conditions: conditions ?? this.conditions,
triggeredAlarms: triggeredAlarms ?? this.triggeredAlarms,
emailTemplate: emailTemplate ?? this.emailTemplate,
smsTemplate: smsTemplate ?? this.smsTemplate,
fcmTemplate: fcmTemplate ?? this.fcmTemplate,
voiceTemplate: voiceTemplate ?? this.voiceTemplate,
$id: $id ?? this.$id,
cstamp: cstamp ?? this.cstamp,
cby: cby ?? this.cby,
uby: uby ?? this.uby,
ustamp: ustamp ?? this.ustamp);
}