copyWith method
NmResponseRule
copyWith({
- String? id,
- String? name,
- bool? enabled,
- int? priority,
- NmResponseChannel? channel,
- NmResponseMatcher? matcher,
- List<
NmResponseEffect> ? effects, - NmSemanticOutcome? outcome,
- bool clearOutcome = false,
Copy with.
Implementation
NmResponseRule copyWith({
String? id,
String? name,
bool? enabled,
int? priority,
NmResponseChannel? channel,
NmResponseMatcher? matcher,
List<NmResponseEffect>? effects,
NmSemanticOutcome? outcome,
bool clearOutcome = false,
}) => NmResponseRule(
id: id ?? this.id,
name: name ?? this.name,
enabled: enabled ?? this.enabled,
priority: priority ?? this.priority,
channel: channel ?? this.channel,
matcher: matcher ?? this.matcher,
effects: effects ?? this.effects,
outcome: clearOutcome ? null : outcome ?? this.outcome,
);