WordMatch class

Object that stores information about matched mistakes.

Constructors

WordMatch({required String word, required int offset, required int length, String? message, String? sentence, List<String> replacements = const []})
Creates a new instance of the WordMatch class.
WordMatch.fromJson(Map<String, dynamic> map)
Parse WordMatch from json.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Length of the word.
final
message String?
The message about the error.
final
offset int
Offset to the word.
final
replacements List<String>
List of possible replacements
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentence String?
The whole sentence.
final
word String
The word that was in the sentence.
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