NmResponsePreview class
Response preview.
Constructors
-
NmResponsePreview({required bool matched, String? matchedText, Map<
NmResponseField, String> values = const {}, NmSemanticOutcome? outcome, String? error}) -
Creates a NmResponsePreview.
const
Properties
- error → String?
-
Why the preview failed (e.g. an invalid regular expression).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- matched → bool
-
Whether the rule matched the sample text.
final
- matchedText → String?
-
The part of the sample the matcher found.
final
- outcome → NmSemanticOutcome?
-
The semantic outcome the rule would report.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Map<
NmResponseField, String> -
Values the rule would extract, by field.
final
Methods
-
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.
inherited