|
|
@ -12,6 +12,7 @@ class SimpleSpellCheckerImpl extends SpellcheckerService { |
|
|
|
language: language, |
|
|
|
language: language, |
|
|
|
safeDictionaryLoad: true, |
|
|
|
safeDictionaryLoad: true, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
/// [SimpleSpellChecker] comes from the package [simple_spell_checker] |
|
|
|
/// [SimpleSpellChecker] comes from the package [simple_spell_checker] |
|
|
|
/// that give us all necessary methods for get our spans with highlighting |
|
|
|
/// that give us all necessary methods for get our spans with highlighting |
|
|
|
/// where needed |
|
|
|
/// where needed |
|
|
@ -32,7 +33,7 @@ class SimpleSpellCheckerImpl extends SpellcheckerService { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void dispose({bool onlyPartial = false}) { |
|
|
|
void dispose({bool onlyPartial = false}) { |
|
|
|
if(onlyPartial) { |
|
|
|
if (onlyPartial) { |
|
|
|
checker.disposeControllers(); |
|
|
|
checker.disposeControllers(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|