WordMatch constructor

WordMatch({
  1. required String word,
  2. required int offset,
  3. required int length,
  4. String? message,
  5. String? sentence,
  6. List<String> replacements = const [],
})

Creates a new instance of the WordMatch class.

Implementation

WordMatch({
  required this.word,
  required this.offset,
  required this.length,
  this.message,
  this.sentence,
  this.replacements = const [],
});