DetectLanguageCallbackResult constructor

DetectLanguageCallbackResult({
  1. required bool isReliable,
  2. required List<DetectLanguageCallbackResultLanguages> languages,
})

Implementation

DetectLanguageCallbackResult({
  /// CLD detected language reliability
  required bool isReliable,

  /// array of detectedLanguage
  required List<DetectLanguageCallbackResultLanguages> languages,
}) : _wrapped = $js.DetectLanguageCallbackResult(
        isReliable: isReliable,
        languages: languages.toJSArray((e) => e.toJS),
      );