Translation.fromDictionaryDefinitionTranslation constructor

Translation.fromDictionaryDefinitionTranslation(
  1. DictionaryDefinitionTranslation value, {
  2. TranslationLanguage? language,
})

Implementation

factory Translation.fromDictionaryDefinitionTranslation(
  DictionaryDefinitionTranslation value, {
  TranslationLanguage? language,
}) {
  return Translation(
    language: language,
    definition: value.definition,
    word: value.translations?.join(language?.wordSeparator ?? "; "),
  );
}