Skip to content

Commit 720b17e

Browse files
fix: add missing language getter/setter for Throttling and Debouncing LangToolService
1 parent cdadc31 commit 720b17e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

lib/src/implementations/debounce_lang_tool_service.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ class DebounceLangToolService extends LanguageCheckService {
1111
/// A debouncing used to debounce the API calls.
1212
final Debouncing<Future<Result<List<Mistake>>?>> debouncing;
1313

14+
@override
15+
String get language => baseService.language;
16+
17+
@override
18+
set language(String language) {
19+
baseService.language = language;
20+
}
21+
1422
/// Creates a new instance of the [DebounceLangToolService] class.
1523
DebounceLangToolService(
1624
this.baseService,

lib/src/implementations/throttling_lang_tool_service.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ class ThrottlingLangToolService extends LanguageCheckService {
1212
/// A throttling used to throttle the API calls.
1313
final Throttling<Future<Result<List<Mistake>>?>> throttling;
1414

15+
@override
16+
String get language => baseService.language;
17+
18+
@override
19+
set language(String language) {
20+
baseService.language = language;
21+
}
22+
1523
/// Creates a new instance of the [ThrottlingLangToolService] class.
1624
ThrottlingLangToolService(
1725
this.baseService,

0 commit comments

Comments
 (0)