diff --git a/lib/domain/language_check_service.dart b/lib/domain/language_check_service.dart index 24b6b65..ac7ee83 100644 --- a/lib/domain/language_check_service.dart +++ b/lib/domain/language_check_service.dart @@ -2,7 +2,7 @@ import 'package:languagetool_textfield/domain/mistake.dart'; /// Base language check service. abstract class LanguageCheckService { - /// Base language check service constructor. + /// Creates a new instance of the [LanguageCheckService] class. const LanguageCheckService(); /// Function that finds mistakes in given text. diff --git a/lib/domain/mistake.dart b/lib/domain/mistake.dart index 7c4e723..b2b4337 100644 --- a/lib/domain/mistake.dart +++ b/lib/domain/mistake.dart @@ -3,7 +3,7 @@ class Mistake { /// A brief description of the mistake. final String message; - /// The type of mistake. + /// A type of this mistake. final String type; /// A position of the beginning of the mistake. @@ -17,7 +17,7 @@ class Mistake { /// Sorted by probability. final List replacements; - /// Create a new instance of the [Mistake] class + /// Creates a new instance of the [Mistake] class const Mistake({ required this.message, required this.type,