File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ class InMemoryDictionaryLanguageCheckService
2727 /// The [getDictionary] callback is required and will be called for every check operation.
2828 /// The service delegates checking to an internal LanguageToolService and then filters
2929 /// the results based on the returned dictionary.
30- InMemoryDictionaryLanguageCheckService ({required this .getDictionary})
31- : super (
32- LanguageToolService (LanguageToolClient ()),
33- const Duration (milliseconds: 250 ),
30+ InMemoryDictionaryLanguageCheckService ({
31+ required this .getDictionary,
32+ LanguageCheckService ? languageToolService,
33+ Duration ? throttlingDuration,
34+ }) : super (
35+ languageToolService ?? LanguageToolService (LanguageToolClient ()),
36+ throttlingDuration ?? const Duration (milliseconds: 250 ),
3437 );
3538
3639 @override
You can’t perform that action at this time.
0 commit comments