detectLang method

Future<TranslationModel> detectLang({
  1. required String text,
})

Detects source lang. text text to detect.

Implementation

Future<TranslationModel> detectLang({required String text}) async {
  return _detectLang(text: text);
}