NmResponseRule class
Response rule.
Constructors
-
NmResponseRule({required String id, required String name, bool enabled = true, required int priority, required NmResponseChannel channel, required NmResponseMatcher matcher, List<
NmResponseEffect> effects = const [], NmSemanticOutcome? outcome}) -
Creates a NmResponseRule.
const
Properties
- channel → NmResponseChannel
-
Which replies the rule reads.
final
-
effects
→ List<
NmResponseEffect> -
Values extracted when it applies.
final
- enabled → bool
-
Disabled rules are kept but never applied.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Stable id within the set.
final
- matcher → NmResponseMatcher
-
When the rule applies.
final
- name → String
-
Display name.
final
- outcome → NmSemanticOutcome?
-
Outcome reported when it applies; null reports none.
final
- priority → int
-
Rules are tried from the highest priority down; the first match wins.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? id, String? name, bool? enabled, int? priority, NmResponseChannel? channel, NmResponseMatcher? matcher, List< NmResponseEffect> ? effects, NmSemanticOutcome? outcome, bool clearOutcome = false}) → NmResponseRule - Copy with.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override