Match class

Object that stores information about matched mistakes.

Constructors

Match({required String message, required String shortMessage, required List<Replacement> replacements, required int offset, required int length, required String sentence, required Rule rule, required bool ignoreForIncompleteSentence, required int contextForSureMatch})
Creates a new instance of the Match class.
Match.fromJson(Map<String, dynamic> json)
Parse Match from json.
factory

Properties

contextForSureMatch int
Context for sure match (i.e. -1, 0, 1, etc).
final
hashCode int
The hash code for this object.
no setterinherited
ignoreForIncompleteSentence bool
Flag that indicates if the mistake is because sentence is incomplete.
final
length int
Length of the word.
final
message String
The message about the error.
final
offset int
Offset to the word.
final
replacements List<Replacement>
List of possible replacements
final
rule Rule
The mistake's rule.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentence String
The whole sentence.
final
shortMessage String
Shortened message (may be empty).
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