findMistakes method
Returns found mistakes in the given text
.
Implementation
@override
Future<Result<List<Mistake>>?> findMistakes(String text) async {
final future = throttling.throttle(() => baseService.findMistakes(text))
as Future<Result<List<Mistake>>?>?;
if (future == null) return null;
return future.then((res) => res ?? Result.success(<Mistake>[].toList()));
}